mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -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
|
|
@ -1084,6 +1084,11 @@ extern int do_sigaltstack(const stack_t __user *, stack_t __user *, unsigned lon
|
|||
#define SEND_SIG_PRIV ((struct siginfo *) 1)
|
||||
#define SEND_SIG_FORCED ((struct siginfo *) 2)
|
||||
|
||||
static inline int is_si_special(const struct siginfo *info)
|
||||
{
|
||||
return info <= SEND_SIG_FORCED;
|
||||
}
|
||||
|
||||
/* True if we are on the alternate signal stack. */
|
||||
|
||||
static inline int on_sig_stack(unsigned long sp)
|
||||
|
|
|
|||
Loading…
Reference in a new issue