projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
828b1f6
)
sas_ss_flags: Remove nested ternary if
author
Richard Weinberger
<richard@nod.at>
Wed, 5 Mar 2014 14:15:22 +0000
(15:15 +0100)
committer
Richard Weinberger
<richard@sigma-star.at>
Wed, 6 Aug 2014 11:03:44 +0000
(13:03 +0200)
...to make it readable.
Signed-off-by: Richard Weinberger <richard@nod.at>
include/linux/sched.h
patch
|
blob
|
blame
|
history
diff --git
a/include/linux/sched.h
b/include/linux/sched.h
index 0376b054a0d0f426816737f4266038cef9531ace..795ea2bc3d4fb57e1269154bee7edd22cd47dc39 100644
(file)
--- 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)