mwifiex: scan: simplify ternary operators using gnu extension
authorAndreas Fenkart <afenkart@gmail.com>
Thu, 10 Mar 2016 08:44:07 +0000 (09:44 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Fri, 15 Apr 2016 18:34:45 +0000 (21:34 +0300)
commit2ccf7cef0cf984241d0b6932ed1cfb1e0d6587d5
tree009ae90b1ae721f0eecc4e9175ef8172350f8146
parent38329568c3f7075c7751984a65e16a9c7fc186bd
mwifiex: scan: simplify ternary operators using gnu extension

"x ? x : y" can be simplified as "x ? : y"
https://gcc.gnu.org/onlinedocs/gcc/Conditionals.html#Conditionals

Reviewed-by: Julian Calaby <julian.calaby@gmail.com>
Signed-off-by: Andreas Fenkart <afenkart@gmail.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/marvell/mwifiex/scan.c