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>
This commit is contained in:
parent
9ea859b11b
commit
28eb51f746
1 changed files with 2 additions and 7 deletions
|
@ -1705,14 +1705,9 @@ static int SecIsInPMKIDList(struct adapter *Adapter, u8 *bssid)
|
||||||
|
|
||||||
do {
|
do {
|
||||||
if ((psecuritypriv->PMKIDList[i].bUsed) &&
|
if ((psecuritypriv->PMKIDList[i].bUsed) &&
|
||||||
(!memcmp(psecuritypriv->PMKIDList[i].Bssid, bssid, ETH_ALEN))) {
|
(!memcmp(psecuritypriv->PMKIDList[i].Bssid, bssid, ETH_ALEN)))
|
||||||
break;
|
break;
|
||||||
} else {
|
} while (++i < NUM_PMKID_CACHE);
|
||||||
i++;
|
|
||||||
/* continue; */
|
|
||||||
}
|
|
||||||
|
|
||||||
} while (i < NUM_PMKID_CACHE);
|
|
||||||
|
|
||||||
if (i == NUM_PMKID_CACHE)
|
if (i == NUM_PMKID_CACHE)
|
||||||
i = -1;/* Could not find. */
|
i = -1;/* Could not find. */
|
||||||
|
|
Loading…
Reference in a new issue