]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
Staging: rtl8712: rtl871x_*: Removed unnecessary else statements after a break or...
authorShiva Kerdel <shiva@exdev.nl>
Mon, 21 Nov 2016 09:12:41 +0000 (10:12 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 21 Nov 2016 10:25:41 +0000 (11:25 +0100)
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>
drivers/staging/rtl8712/rtl871x_ioctl_linux.c
drivers/staging/rtl8712/rtl871x_mlme.c

index 475e7904fe45fa1463ddefe56100ae76a76ae2c5..590acb5aea3d609c34432dc685cdf3e952aba98d 100644 (file)
@@ -588,9 +588,9 @@ static int r871x_set_wpa_ie(struct _adapter *padapter, char *pie,
                                        netdev_info(padapter->pnetdev, "r8712u: SET WPS_IE, wps_phase==true\n");
                                        cnt += buf[cnt + 1] + 2;
                                        break;
-                               } else {
-                                       cnt += buf[cnt + 1] + 2;
                                }
+
+                               cnt += buf[cnt + 1] + 2;
                        }
                }
        }
index 5df1273e75cd97c9292ee79801b8a1a5d355b07f..35cbdc71cad448b5c0a2e3fe776eb1356068b2bf 100644 (file)
@@ -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) {