drivers: staging: rtl8723au: hal: Removed unnecessary parentheses
authorTina Johnson <tinajohnson.1234@gmail.com>
Mon, 9 Mar 2015 06:32:50 +0000 (12:02 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 9 Mar 2015 12:37:22 +0000 (13:37 +0100)
Parentheses around the right side of an assignment statement are
unnecessary and hence removed. Coccinelle was used to produce the
patch:

@rule1@
identifier x,y;
constant c;
@@

(

 x =
-(
 y << c
-)
 ;
|
 x =
-(
 y >> c
-)
 ;
|
 x =
-(
 y + c
-)
 ;
|
 x =
-(
 y - c
-)
 ;

)

Signed-off-by: Tina Johnson <tinajohnson.1234@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723au/hal/HalDMOutSrc8723A_CE.c

index ba373744ece9ddbb3903db8bc37d17ebf0a8a598..3f9ec9e00e1681fec049ece1c10782631f9a13c2 100644 (file)
@@ -222,7 +222,7 @@ odm_TXPowerTrackingCallback_ThermalMeter_92C(struct rtw_adapter *Adapter)
                        }
 
                        if (CCK_index > (CCK_TABLE_SIZE-1))
-                               CCK_index = (CCK_TABLE_SIZE-1);
+                               CCK_index = CCK_TABLE_SIZE-1;
                        else if (CCK_index < 0)
                                CCK_index = 0;
                }