]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
signals: remove unused variable from send_signal()
authorPavel Emelyanov <xemul@openvz.org>
Wed, 30 Apr 2008 07:52:34 +0000 (00:52 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 30 Apr 2008 15:29:33 +0000 (08:29 -0700)
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>
kernel/signal.c

index 64ad0ed15992562a4b67da61e4b34746dc9c48c7..f5f3b8a61bee04342136facac57497454c5c2b3a 100644 (file)
@@ -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
@@ -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) \