staging:rtl8188eu:core Fix remove unneccessary else block
authorJanani Sankara Babu <jananis37@gmail.com>
Fri, 1 Sep 2017 07:02:53 +0000 (12:32 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 1 Sep 2017 17:08:45 +0000 (19:08 +0200)
This patch removes the unwanted braces and else statement inside the
function 'SecIsInPMKIDList'

Signed-off-by: Janani Sankara Babu <jananis37@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8188eu/core/rtw_mlme.c

index 535fc629f14f391ff3231b598edea03fd03eb267..f663e6c41f8aeea64f1d23d8a1d984280abce36a 100644 (file)
@@ -1705,14 +1705,9 @@ static int SecIsInPMKIDList(struct adapter *Adapter, u8 *bssid)
 
        do {
                if ((psecuritypriv->PMKIDList[i].bUsed) &&
-                   (!memcmp(psecuritypriv->PMKIDList[i].Bssid, bssid, ETH_ALEN))) {
+                   (!memcmp(psecuritypriv->PMKIDList[i].Bssid, bssid, ETH_ALEN)))
                        break;
-               } else {
-                       i++;
-                       /* continue; */
-               }
-
-       } while (i < NUM_PMKID_CACHE);
+       } while (++i < NUM_PMKID_CACHE);
 
        if (i == NUM_PMKID_CACHE)
                i = -1;/*  Could not find. */