staging: r8188eu: remove unnecessary braces in if statements
PATCH v2 1/1 staging: r8188eu: remove unnecessary braces in if statements
In reply to a message not in the archiveBraces are not necessary for single statement blocks.
Signed-off-by Marcelo Aloisio da Silva <[email protected]>
---
Changes in v2:
- Only remove braces for the if statements below.
drivers/staging/r8188eu/core/rtw_mlme.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)
drivers/staging/r8188eu/core/rtw_mlme.c +2 -4
@@ -1392,14 +1392,12 @@ void rtw_dynamic_check_timer_handlder(struct adapter *adapter)/* expire NAT2.5 entry */ nat25_db_expire (adapter); -if (adapter->pppoe_connection_in_progress >0 ) { +if (adapter->pppoe_connection_in_progress >0 ) adapter->pppoe_connection_in_progress--; - }/* due to rtw_dynamic_check_timer_handlder() is called every 2 seconds */ -if (adapter->pppoe_connection_in_progress >0 ) { +if (adapter->pppoe_connection_in_progress >0 ) adapter->pppoe_connection_in_progress--; - } }rcu_read_unlock ();
Signature · 1 line
2.25.1
Quoted 6 lines · Marcelo Aloisio da Silva
Braces are not necessary for single statement blocks.
Signed-off-by Marcelo Aloisio da Silva <[email protected]>---
Changes in v2:
- Only remove braces for the if statements below.
Thanks!
Reviewed-by Dan Carpenter <[email protected]>
regards,
dan carpenter