From: Elena Oat Date: Tue, 18 Mar 2014 20:09:21 +0000 (+0200) Subject: Staging: rtl8188eu: Fix warning of braces {} are not necessary. X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=a318c9e0f418076059737118a62d53e0ca11728a;p=linux-beck.git Staging: rtl8188eu: Fix warning of braces {} are not necessary. This patch fixes the warning of "braces {} are not necessary for single statement blocks" in file rtw_mlme.c. I have removed the else statement in one case, as it didn't have any value. Signed-off-by: Elena Oat Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/rtl8188eu/core/rtw_mlme.c b/drivers/staging/rtl8188eu/core/rtw_mlme.c index a934bd97219d..3595c2851460 100644 --- a/drivers/staging/rtl8188eu/core/rtw_mlme.c +++ b/drivers/staging/rtl8188eu/core/rtw_mlme.c @@ -1544,14 +1544,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(); @@ -1849,11 +1847,9 @@ static int SecIsInPMKIDList(struct adapter *Adapter, u8 *bssid) } while (i < NUM_PMKID_CACHE); - if (i == NUM_PMKID_CACHE) { + if (i == NUM_PMKID_CACHE) i = -1;/* Could not find. */ - } else { - /* There is one Pre-Authentication Key for the specific BSSID. */ - } + return i; }