summaryrefslogtreecommitdiffstats
path: root/include/linux/sched.h
diff options
context:
space:
mode:
authorRichard Weinberger <richard@nod.at>2014-03-05 15:15:22 +0100
committerRichard Weinberger <richard@sigma-star.at>2014-08-06 13:03:44 +0200
commit72f15c03977acc8f06080e6c8a91d93bfc655a65 (patch)
treeb159554eec8feb7402496a7dda273ca6601e93b9 /include/linux/sched.h
parent828b1f65d23cf8a68795739f6dd08fc8abd9ee64 (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.h6
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)