Commit 8f11351e authored by Christian Brauner's avatar Christian Brauner Committed by Linus Torvalds

signal: make flush_sigqueue_mask() void

The return value of flush_sigqueue_mask() is never checked anywhere.

Link: http://lkml.kernel.org/r/20180602103653.18181-14-christian@brauner.ioSigned-off-by: default avatarChristian Brauner <christian@brauner.io>
Reviewed-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Cc: Al Viro <viro@zeniv.linux.org.uk>
Cc: Eric W. Biederman <ebiederm@xmission.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: Ingo Molnar <mingo@kernel.org>
Cc: James Morris <james.morris@microsoft.com>
Cc: Kees Cook <keescook@chromium.org>
Cc: Oleg Nesterov <oleg@redhat.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephen Smalley <sds@tycho.nsa.gov>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 67a48a24
...@@ -687,14 +687,14 @@ void signal_wake_up_state(struct task_struct *t, unsigned int state) ...@@ -687,14 +687,14 @@ void signal_wake_up_state(struct task_struct *t, unsigned int state)
* *
* All callers must be holding the siglock. * All callers must be holding the siglock.
*/ */
static int flush_sigqueue_mask(sigset_t *mask, struct sigpending *s) static void flush_sigqueue_mask(sigset_t *mask, struct sigpending *s)
{ {
struct sigqueue *q, *n; struct sigqueue *q, *n;
sigset_t m; sigset_t m;
sigandsets(&m, mask, &s->signal); sigandsets(&m, mask, &s->signal);
if (sigisemptyset(&m)) if (sigisemptyset(&m))
return 0; return;
sigandnsets(&s->signal, &s->signal, mask); sigandnsets(&s->signal, &s->signal, mask);
list_for_each_entry_safe(q, n, &s->list, list) { list_for_each_entry_safe(q, n, &s->list, list) {
...@@ -703,7 +703,6 @@ static int flush_sigqueue_mask(sigset_t *mask, struct sigpending *s) ...@@ -703,7 +703,6 @@ static int flush_sigqueue_mask(sigset_t *mask, struct sigpending *s)
__sigqueue_free(q); __sigqueue_free(q);
} }
} }
return 1;
} }
static inline int is_si_special(const struct siginfo *info) static inline int is_si_special(const struct siginfo *info)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment