Skip to contentSkip to conversation

Remove unused variable from send_signal()

PATCH New Pavel Emelyanov 1 participant 1 message Feb 12, 2008

lore
Share & tools
lore
#0 lore raw

PATCH 1/3 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.

---
 kernel/signal.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)
kernel/signal.c +1 -2
index cc45a6b..21d4751 100644
@@ -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) \
Signature · 1 line
1.5.3.4