[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1504179210-2295-1-git-send-email-jananis37@gmail.com>
Date: Thu, 31 Aug 2017 17:03:30 +0530
From: Janani Sankara Babu <jananis37@...il.com>
To: gregkh@...uxfoundation.org
Cc: insafonov@...il.com, gs051095@...il.com,
devel@...verdev.osuosl.org, linux-kernel@...r.kernel.org,
Janani Sankara Babu <jananis37@...il.com>
Subject: [PATCH] staging:rtl8188eu:core Remove unneccessary else block
This patch is created to remove the unneccessary else statement inside the
function 'SecIsInPMKIDList'.
Signed-off-by: Janani Sankara Babu <jananis37@...il.com>
---
drivers/staging/rtl8188eu/core/rtw_mlme.c | 9 +++------
1 file changed, 3 insertions(+), 6 deletions(-)
diff --git a/drivers/staging/rtl8188eu/core/rtw_mlme.c b/drivers/staging/rtl8188eu/core/rtw_mlme.c
index d3668ca..8480d30 100644
--- a/drivers/staging/rtl8188eu/core/rtw_mlme.c
+++ b/drivers/staging/rtl8188eu/core/rtw_mlme.c
@@ -1708,13 +1708,10 @@ 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; */
- }
-
+ i++;
+ /* continue; */
} while (i < NUM_PMKID_CACHE);
if (i == NUM_PMKID_CACHE)
--
1.9.1
Powered by blists - more mailing lists