summaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorPavel Emelyanov <xemul@openvz.org>2008-04-30 09:52:34 +0200
committerLinus Torvalds <torvalds@linux-foundation.org>2008-04-30 17:29:33 +0200
commite1401c6bbb289d154eb0d0c292cc9f8259e4af73 (patch)
tree64e4e7754c240c1c34c69e2975ccfb350eb4aa1f /kernel
parentisofs: fix access to unallocated memory when reading corrupted filesystem (diff)
downloadlinux-e1401c6bbb289d154eb0d0c292cc9f8259e4af73.tar.xz
linux-e1401c6bbb289d154eb0d0c292cc9f8259e4af73.zip
signals: remove unused variable from send_signal()
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>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/signal.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/kernel/signal.c b/kernel/signal.c
index 64ad0ed15992..f5f3b8a61bee 100644
--- a/kernel/signal.c
+++ b/kernel/signal.c
@@ -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) \