aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJanani Sankara Babu <jananis37@gmail.com>2017-09-01 03:02:53 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-09-01 13:08:45 -0400
commit28eb51f7468a43769bd9dca19a54d97ec7a447ed (patch)
tree9ed3b77bc14dbf39e21a21f5fc0bc73cc84b0f3c
parent9ea859b11b251df57df5bb9fc146ac014b31071c (diff)
staging:rtl8188eu:core Fix remove unneccessary else block
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>
-rw-r--r--drivers/staging/rtl8188eu/core/rtw_mlme.c9
1 files changed, 2 insertions, 7 deletions
diff --git a/drivers/staging/rtl8188eu/core/rtw_mlme.c b/drivers/staging/rtl8188eu/core/rtw_mlme.c
index 535fc629f14f..f663e6c41f8a 100644
--- a/drivers/staging/rtl8188eu/core/rtw_mlme.c
+++ b/drivers/staging/rtl8188eu/core/rtw_mlme.c
@@ -1705,14 +1705,9 @@ static int SecIsInPMKIDList(struct adapter *Adapter, u8 *bssid)
1705 1705
1706 do { 1706 do {
1707 if ((psecuritypriv->PMKIDList[i].bUsed) && 1707 if ((psecuritypriv->PMKIDList[i].bUsed) &&
1708 (!memcmp(psecuritypriv->PMKIDList[i].Bssid, bssid, ETH_ALEN))) { 1708 (!memcmp(psecuritypriv->PMKIDList[i].Bssid, bssid, ETH_ALEN)))
1709 break; 1709 break;
1710 } else { 1710 } while (++i < NUM_PMKID_CACHE);
1711 i++;
1712 /* continue; */
1713 }
1714
1715 } while (i < NUM_PMKID_CACHE);
1716 1711
1717 if (i == NUM_PMKID_CACHE) 1712 if (i == NUM_PMKID_CACHE)
1718 i = -1;/* Could not find. */ 1713 i = -1;/* Could not find. */