mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
signal: make has_pending_signals() return bool
has_pending_signals() already behaves like a boolean function. Let's actually declare it as such too. 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
6a0cdcd788
commit
938696a829
1 changed files with 1 additions and 1 deletions
|
|
@ -110,7 +110,7 @@ static bool sig_ignored(struct task_struct *t, int sig, bool force)
|
|||
* Re-calculate pending state from the set of locally pending
|
||||
* signals, globally pending signals, and blocked signals.
|
||||
*/
|
||||
static inline int has_pending_signals(sigset_t *signal, sigset_t *blocked)
|
||||
static inline bool has_pending_signals(sigset_t *signal, sigset_t *blocked)
|
||||
{
|
||||
unsigned long ready;
|
||||
long i;
|
||||
|
|
|
|||
Loading…
Reference in a new issue