mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
signal: make flush_sigqueue_mask() void
The return value of flush_sigqueue_mask() is never checked anywhere. Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Christian Brauner <[email protected]> Reviewed-by: Andrew Morton <[email protected]> Cc: Al Viro <[email protected]> Cc: Eric W. Biederman <[email protected]> Cc: Greg Kroah-Hartman <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: James Morris <[email protected]> Cc: Kees Cook <[email protected]> Cc: Oleg Nesterov <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Stephen Smalley <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
67a48a2447
commit
8f11351eee
1 changed files with 2 additions and 3 deletions
|
|
@ -687,14 +687,14 @@ void signal_wake_up_state(struct task_struct *t, unsigned int state)
|
|||
*
|
||||
* 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;
|
||||
sigset_t m;
|
||||
|
||||
sigandsets(&m, mask, &s->signal);
|
||||
if (sigisemptyset(&m))
|
||||
return 0;
|
||||
return;
|
||||
|
||||
sigandnsets(&s->signal, &s->signal, mask);
|
||||
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)
|
|||
__sigqueue_free(q);
|
||||
}
|
||||
}
|
||||
return 1;
|
||||
}
|
||||
|
||||
static inline int is_si_special(const struct siginfo *info)
|
||||
|
|
|
|||
Loading…
Reference in a new issue