staging: rtl8723bs: core: Remove unnecessary parentheses
PATCH 1/1 staging: rtl8723bs: core: Remove unnecessary parentheses
Removes unnecessary parentheses while returning an expression.Issue found using coccinelle.
Semantic patch used to solve the problem is as follows:
@@
expression e;
@@
return
-(
e
-)
;
Signed-off-by Vatsala Narang <[email protected]>
--- drivers/staging/rtl8723bs/core/rtw_wlan_util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/rtl8723bs/core/rtw_wlan_util.c +1 -1
@@ -518,7 +518,7 @@ unsigned int decide_wait_for_beacon_timeout(unsigned int bcn_interval)else if ((bcn_interval <<2 ) >WAIT_FOR_BCN_TO_MAX )return WAIT_FOR_BCN_TO_MAX ;else -return ((bcn_interval <<2 )); +return bcn_interval <<2 ; }void invalidate_cam_all (struct adapter *padapter)
Signature · 1 line
2.17.1