mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
[PATCH] cleanup the usage of SEND_SIG_xxx constants
This patch simplifies some checks for magic siginfo values. It should not change the behaviour in any way. Signed-off-by: Oleg Nesterov <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
b67a1b9e4b
commit
621d31219d
3 changed files with 13 additions and 13 deletions
|
|
@ -2713,8 +2713,7 @@ static int selinux_task_kill(struct task_struct *p, struct siginfo *info, int si
|
|||
if (rc)
|
||||
return rc;
|
||||
|
||||
if (info != SEND_SIG_NOINFO && (info == SEND_SIG_PRIV ||
|
||||
info == SEND_SIG_FORCED || SI_FROMKERNEL(info)))
|
||||
if (info != SEND_SIG_NOINFO && (is_si_special(info) || SI_FROMKERNEL(info)))
|
||||
return 0;
|
||||
|
||||
if (!sig)
|
||||
|
|
|
|||
Loading…
Reference in a new issue