summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcelo Aloisio da Silva <marcelo.as@aol.com>2022-02-20 14:41:50 -0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-02-21 18:14:13 +0100
commit7c6444d8e0f1be30e7fd910e40c0d495c36e6935 (patch)
tree7be3f556e203e495a215d70c5bddcbfb11844bee
parentc4b5dfd8403bd29ba34b9173a1e4e2f3ee655ce2 (diff)
downloadlinux-7c6444d8e0f1be30e7fd910e40c0d495c36e6935.tar.gz
linux-7c6444d8e0f1be30e7fd910e40c0d495c36e6935.zip
staging: r8188eu: remove unnecessary braces in if statements
Braces are not necessary for single statement blocks. Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Marcelo Aloisio da Silva <marcelo.as@aol.com> Link: https://lore.kernel.org/r/20220220174150.GA11496@snoopy Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r--drivers/staging/r8188eu/core/rtw_mlme.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/staging/r8188eu/core/rtw_mlme.c b/drivers/staging/r8188eu/core/rtw_mlme.c
index 3abc7e21bc0d..4bb6edcc0b78 100644
--- a/drivers/staging/r8188eu/core/rtw_mlme.c
+++ b/drivers/staging/r8188eu/core/rtw_mlme.c
@@ -1391,14 +1391,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();