LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* [PATCH 1/3] Remove unused variable from send_signal()
@ 2008-02-12 10:19 Pavel Emelyanov
  0 siblings, 0 replies; only message in thread
From: Pavel Emelyanov @ 2008-02-12 10:19 UTC (permalink / raw)
  To: Andrew Morton; +Cc: Linux Kernel Mailing List, Oleg Nesterov

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>

---
 kernel/signal.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/kernel/signal.c b/kernel/signal.c
index cc45a6b..21d4751 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) \
-- 
1.5.3.4


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-02-12 10:23 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-02-12 10:19 [PATCH 1/3] Remove unused variable from send_signal() Pavel Emelyanov

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).