Staging: rtl8188eu: Fix warning of braces {} are not necessary.
authorElena Oat <oat.elena@gmail.com>
Tue, 18 Mar 2014 20:09:21 +0000 (22:09 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 19 Mar 2014 16:01:49 +0000 (09:01 -0700)
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 <oat.elena@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/core/rtw_mlme.c

index a934bd97219d02d4b81010a019d8552a6b9eb81f..3595c28514602d8e817bee695597bddf30331183 100644 (file)
@@ -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;
 }