diff options
author | Shiva Kerdel <shiva@exdev.nl> | 2016-11-21 10:12:41 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2016-11-21 11:25:41 +0100 |
commit | 08711b876d3f1ea0b62b84b68214087e5bca21b7 (patch) | |
tree | db0e37321721a174cf68208e2c977d057352ef5f /drivers/staging/rtl8712/rtl871x_mlme.c | |
parent | staging: rtl8712: Fix coding style warnings on Block comments (diff) | |
download | linux-dev-08711b876d3f1ea0b62b84b68214087e5bca21b7.tar.xz linux-dev-08711b876d3f1ea0b62b84b68214087e5bca21b7.zip |
Staging: rtl8712: rtl871x_*: Removed unnecessary else statements after a break or return
The indent code blocks of the else statements were unnecessary
and are better written without them.
Signed-off-by: Shiva Kerdel <shiva@exdev.nl>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/rtl8712/rtl871x_mlme.c')
-rw-r--r-- | drivers/staging/rtl8712/rtl871x_mlme.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/rtl8712/rtl871x_mlme.c b/drivers/staging/rtl8712/rtl871x_mlme.c index 5df1273e75cd..35cbdc71cad4 100644 --- a/drivers/staging/rtl8712/rtl871x_mlme.c +++ b/drivers/staging/rtl8712/rtl871x_mlme.c @@ -1343,8 +1343,8 @@ static int SecIsInPMKIDList(struct _adapter *Adapter, u8 *bssid) (!memcmp(psecuritypriv->PMKIDList[i].Bssid, bssid, ETH_ALEN))) break; - else - i++; + i++; + } while (i < NUM_PMKID_CACHE); if (i == NUM_PMKID_CACHE) { |