]> git.baikalelectronics.ru Git - kernel.git/commit
staging: rtl8192u: Remove ternary operator
authorGargi Sharma <gs051095@gmail.com>
Mon, 27 Feb 2017 05:27:50 +0000 (10:57 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 6 Mar 2017 08:17:07 +0000 (09:17 +0100)
commit50a6cf2c874d5a760797bd6f73eae37d612d1d74
treed9bd4fe17e2cb2de9725e7768c80c4ad77883843
parente44cbbf7a422249c2148955323fa38e854bc7907
staging: rtl8192u: Remove ternary operator

Relational and logical operators evaluate to either true or false.
Lines with ternary operators were found using coccinelle script. In a
few cases using logical && operator would suffice. Hence those were
changed to improve readability.

Coccinelle Script:
@r@
expression A,B;
symbol true,false;
binary operator b = {==,!=,&&,||,>=,<=,>,<};
@@
- (A b B) ? true : false
+ A b B

Signed-off-by: Gargi Sharma <gs051095@gmail.com>
Acked-by: Julia Lawall <julia.lawall@lip6.fr>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192u/ieee80211/rtl819x_HTProc.c