Commit 72f15c03 authored by Richard Weinberger's avatar Richard Weinberger Committed by Richard Weinberger

sas_ss_flags: Remove nested ternary if

...to make it readable.
Signed-off-by: default avatarRichard Weinberger <richard@nod.at>
parent 828b1f65
......@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment