Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1724824
| From | Janani Sankara Babu <jananis37@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH V2] staging:rtl8188eu:core Fix remove unneccessary else block |
| Date | 2017-09-01 09:10 +0200 |
| Message-ID | <ukOfw-xa-15@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
This patch removes the unwanted braces and else statement inside the
function 'SecIsInPMKIDList'
Signed-off-by: Janani Sankara Babu <jananis37@gmail.com>
---
Changelog
V1 : Removed the else statement & Curly braces in If statement
V2 : Removed the comment and added preincrement of i inside the while loop
drivers/staging/rtl8188eu/core/rtw_mlme.c | 9 ++-------
1 file changed, 2 insertions(+), 7 deletions(-)
diff --git a/drivers/staging/rtl8188eu/core/rtw_mlme.c b/drivers/staging/rtl8188eu/core/rtw_mlme.c
index d3668ca..9c2571d 100644
--- a/drivers/staging/rtl8188eu/core/rtw_mlme.c
+++ b/drivers/staging/rtl8188eu/core/rtw_mlme.c
@@ -1708,14 +1708,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. */
--
1.9.1
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
[PATCH V2] staging:rtl8188eu:core Fix remove unneccessary else block Janani Sankara Babu <jananis37@gmail.com> - 2017-09-01 09:10 +0200
csiph-web