mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
signal: make get_signal() return bool
make get_signal() 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
f99e9d8c5c
commit
20ab7218d2
2 changed files with 3 additions and 3 deletions
|
|
@ -2287,7 +2287,7 @@ static int ptrace_signal(int signr, siginfo_t *info)
|
|||
return signr;
|
||||
}
|
||||
|
||||
int get_signal(struct ksignal *ksig)
|
||||
bool get_signal(struct ksignal *ksig)
|
||||
{
|
||||
struct sighand_struct *sighand = current->sighand;
|
||||
struct signal_struct *signal = current->signal;
|
||||
|
|
@ -2297,7 +2297,7 @@ int get_signal(struct ksignal *ksig)
|
|||
task_work_run();
|
||||
|
||||
if (unlikely(uprobe_deny_signal()))
|
||||
return 0;
|
||||
return false;
|
||||
|
||||
/*
|
||||
* Do this once, we can't return to user-mode if freezing() == T.
|
||||
|
|
|
|||
Loading…
Reference in a new issue