Skip to content

Commit

Permalink
signals: remove unused variable from send_signal()
Browse files Browse the repository at this point in the history
This function doesn't change the ret's value and thus always returns 0, with a
single exception of returning -EAGAIN explicitly.

Signed-off-by: Pavel Emelyanov <xemul@openvz.org>
Cc: Roland McGrath <roland@redhat.com>
Cc: Oleg Nesterov <oleg@tv-sign.ru>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Pavel Emelyanov authored and Linus Torvalds committed Apr 30, 2008
1 parent 2deb1ac commit e1401c6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions kernel/signal.c
Original file line number Diff line number Diff line change
Expand Up @@ -661,7 +661,6 @@ static int send_signal(int sig, struct siginfo *info, struct task_struct *t,
struct sigpending *signals)
{
struct sigqueue * q = NULL;
int ret = 0;

/*
* Deliver the signal to listening signalfds. This must be called
Expand Down Expand Up @@ -719,7 +718,7 @@ static int send_signal(int sig, struct siginfo *info, struct task_struct *t,

out_set:
sigaddset(&signals->signal, sig);
return ret;
return 0;
}

#define LEGACY_QUEUE(sigptr, sig) \
Expand Down

0 comments on commit e1401c6

Please sign in to comment.