提交 e1401c6b 编写于 作者: P Pavel Emelyanov 提交者: Linus Torvalds

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: NPavel Emelyanov <xemul@openvz.org>
Cc: Roland McGrath <roland@redhat.com>
Cc: Oleg Nesterov <oleg@tv-sign.ru>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 2deb1acc
...@@ -661,7 +661,6 @@ static int send_signal(int sig, struct siginfo *info, struct task_struct *t, ...@@ -661,7 +661,6 @@ static int send_signal(int sig, struct siginfo *info, struct task_struct *t,
struct sigpending *signals) struct sigpending *signals)
{ {
struct sigqueue * q = NULL; struct sigqueue * q = NULL;
int ret = 0;
/* /*
* Deliver the signal to listening signalfds. This must be called * 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, ...@@ -719,7 +718,7 @@ static int send_signal(int sig, struct siginfo *info, struct task_struct *t,
out_set: out_set:
sigaddset(&signals->signal, sig); sigaddset(&signals->signal, sig);
return ret; return 0;
} }
#define LEGACY_QUEUE(sigptr, sig) \ #define LEGACY_QUEUE(sigptr, sig) \
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册