staging: rtl8723bs: remove ternary operators in assignmet statments
authorAastha Gupta <aastha.gupta4104@gmail.com>
Sun, 8 Oct 2017 04:54:51 +0000 (10:24 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 18 Oct 2017 14:07:49 +0000 (16:07 +0200)
commit95b3b4238581e72756505d601948f955e8baccf7
tree12c7de20de9e4ebbf8449666e4823bd16f039324
parent33536569fa2b4cd4cc812eb2900249d77c904160
staging: rtl8723bs: remove ternary operators in assignmet statments

Remove unnecessary ternary operators in assignments statments.

This patch is with the help of following Coccinelle script:

@@
expression a, b, c;
binary operator op = {==, !=, <=, >=, <, >, &&, ||};
@@

c =
- (a op b) ? true : false
+ a op b

Signed-off-by: Aastha Gupta <aastha.gupta4104@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/core/rtw_pwrctrl.c
drivers/staging/rtl8723bs/hal/hal_btcoex.c
drivers/staging/rtl8723bs/hal/hal_com.c
drivers/staging/rtl8723bs/hal/odm_CfoTracking.c
drivers/staging/rtl8723bs/hal/odm_HWConfig.c
drivers/staging/rtl8723bs/hal/sdio_halinit.c