[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:
Oleg Nesterov 2005-10-30 15:03:45 -08:00 • committed by Linus Torvalds
commit 621d31219d
3 changed files with 13 additions and 13 deletions

View file

@ -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)