diff options
author | Richard Weinberger <richard@nod.at> | 2014-03-05 15:15:22 +0100 |
---|---|---|
committer | Richard Weinberger <richard@sigma-star.at> | 2014-08-06 13:03:44 +0200 |
commit | 72f15c03977acc8f06080e6c8a91d93bfc655a65 (patch) | |
tree | b159554eec8feb7402496a7dda273ca6601e93b9 /include/linux/sched.h | |
parent | 828b1f65d23cf8a68795739f6dd08fc8abd9ee64 (diff) |
sas_ss_flags: Remove nested ternary if
...to make it readable.
Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'include/linux/sched.h')
-rw-r--r-- | include/linux/sched.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/include/linux/sched.h b/include/linux/sched.h index 0376b054a0d..795ea2bc3d4 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h @@ -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) |