From: Pavel Emelyanov <xemul@openvz.org>
To: Andrew Morton <akpm@linux-foundation.org>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
Oleg Nesterov <oleg@tv-sign.ru>
Subject: [PATCH 1/3] Remove unused variable from send_signal()
Date: Tue, 12 Feb 2008 13:19:30 +0300 [thread overview]
Message-ID: <47B172B2.30507@openvz.org> (raw)
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
reply other threads:[~2008-02-12 10:23 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=47B172B2.30507@openvz.org \
--to=xemul@openvz.org \
--cc=akpm@linux-foundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=oleg@tv-sign.ru \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox