forked from Minki/linux
sas_ss_flags: Remove nested ternary if
...to make it readable. Signed-off-by: Richard Weinberger <richard@nod.at>
This commit is contained in:
parent
828b1f65d2
commit
72f15c0397
@ -2360,8 +2360,10 @@ static inline int on_sig_stack(unsigned long sp)
|
||||
|
||||
static inline int sas_ss_flags(unsigned long sp)
|
||||
{
|
||||
return (current->sas_ss_size == 0 ? SS_DISABLE
|
||||
: on_sig_stack(sp) ? SS_ONSTACK : 0);
|
||||
if (!current->sas_ss_size)
|
||||
return SS_DISABLE;
|
||||
|
||||
return on_sig_stack(sp) ? SS_ONSTACK : 0;
|
||||
}
|
||||
|
||||
static inline unsigned long sigsp(unsigned long sp, struct ksignal *ksig)
|
||||
|
Loading…
Reference in New Issue
Block a user