From: Richard Weinberger Date: Wed, 5 Mar 2014 14:15:22 +0000 (+0100) Subject: sas_ss_flags: Remove nested ternary if X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=72f15c03977acc8f06080e6c8a91d93bfc655a65;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git sas_ss_flags: Remove nested ternary if ...to make it readable. Signed-off-by: Richard Weinberger --- diff --git a/include/linux/sched.h b/include/linux/sched.h index 0376b054a0d0..795ea2bc3d4f 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)