staging: rtl8192e: Remove useless parentheses
PATCH 1/1 staging: rtl8192e: Remove useless parentheses
Parentheses are not needed on the right side of assignment. Additionally added space around '+' to remove checkpatch issue, space required around '+'.
Parentheses Removed using the coccinelle script:
@@
binary operator bop = {+,-,>>,<<};
expression e, e1, e2;
@@
e =
-(
e1 bop e2
-)
--- drivers/staging/rtl8192e/rtl8192e/rtl_dm.c | 2 +- drivers/staging/rtl8192e/rtl819x_HTProc.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
drivers/staging/rtl8192e/rtl8192e/rtl_dm.c +1 -1
@@ -886,7 +886,7 @@ static void _rtl92e_dm_tx_power_tracking_cb_thermal(struct net_device *dev)if (tmpCCK40Mindex >= CCK_Table_length) tmpCCK40Mindex = CCK_Table_length-1 ; }else { - tmpval = ((u8 )tmpRegA - priv->ThermalMeter[0 ]); + tmpval = (u8 )tmpRegA - priv->ThermalMeter[0 ];if (tmpval >=6 ) tmpOFDMindex = tmpCCK20Mindex =0 ;else
drivers/staging/rtl8192e/rtl819x_HTProc.c +1 -1
@@ -489,7 +489,7 @@ u8 HTGetHighestMCSRate(struct rtllib_device *ieee, u8 *pMCSRateSet,if ((bitMap%2 ) !=0 ) {if (HTMcsToDataRate (ieee, (8 *i+j)) >HTMcsToDataRate (ieee, mcsRate)) - mcsRate = (8 *i+j); + mcsRate =8 *i + j; } bitMap >>=1 ; }
Signature · 1 line
2.7.4
Quoted 39 lines · Gargi Sharma
Parentheses are not needed on the right side of assignment. Additionally added space around '+' to remove checkpatch issue, space required around '+'.
Parentheses Removed using the coccinelle script:
@@
binary operator bop = {+,-,>>,<<};
expression e, e1, e2;
@@e =
(quoted diff) +0
-2-( e1 bop e2 -)Signed-off-by Gargi Sharma <[email protected]>--- drivers/staging/rtl8192e/rtl8192e/rtl_dm.c | 2 +- drivers/staging/rtl8192e/rtl819x_HTProc.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)drivers/staging/rtl8192e/rtl8192e/rtl_dm.c +1
-1@@ -886,7 +886,7 @@ static void _rtl92e_dm_tx_power_tracking_cb_thermal(struct net_device *dev)if (tmpCCK40Mindex >= CCK_Table_length) tmpCCK40Mindex = CCK_Table_length-1 ; }else { - tmpval = ((u8 )tmpRegA - priv->ThermalMeter[0 ]); + tmpval = (u8 )tmpRegA - priv->ThermalMeter[0 ];if (tmpval >=6 ) tmpOFDMindex = tmpCCK20Mindex =0 ;else drivers/staging/rtl8192e/rtl819x_HTProc.c +0
-0
drivers/staging/rtl8192e/rtl819x_HTProc.c u8 HTGetHighestMCSRate(struct rtllib_device *ieee, u8 *pMCSRateSet, · line 492
Quoted 5 lines
drivers/staging/rtl8192e/rtl819x_HTProc.c +1
-1@@ -489,7 +489,7 @@ u8 HTGetHighestMCSRate(struct rtllib_device *ieee, u8 *pMCSRateSet,if ((bitMap%2 ) !=0 ) {if (HTMcsToDataRate (ieee, (8 *i+j)) >HTMcsToDataRate (ieee, mcsRate)) - mcsRate = (8 *i+j); + mcsRate =8 *i + j;
Since you put spaces around the +, you may as well put spaces around the * too.
julia
Quoted 13 lines
drivers/staging/rtl8192e/rtl819x_HTProc.c +0
-1} bitMap >>=1 ; } --2.7.4
--
You received this message because you are subscribed to the Google Groups "outreachy-kernel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/1487703410-18483-1-git-send-email-gs051095%40gmail.com.
For more options, visit https://groups.google.com/d/optout.