staging: wilc1000: replace switch statement by simple if condition
authorHariPrasath Elango <hariprasath.elango@gmail.com>
Tue, 20 Mar 2018 12:14:49 +0000 (17:44 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 22 Mar 2018 17:23:10 +0000 (18:23 +0100)
In this case,there is only a single switch case statement.So replacing
by a simple if condition

Signed-off-by: HariPrasath Elango <hariprasath.elango@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/wilc_wfi_cfgoperations.c

index 9d8d5d0..730d64f 100644 (file)
@@ -776,14 +776,8 @@ static int connect(struct wiphy *wiphy, struct net_device *dev,
        }
 
        if (sme->crypto.n_akm_suites) {
-               switch (sme->crypto.akm_suites[0]) {
-               case WLAN_AKM_SUITE_8021X:
+               if (sme->crypto.akm_suites[0] == WLAN_AKM_SUITE_8021X)
                        auth_type = IEEE8021;
-                       break;
-
-               default:
-                       break;
-               }
        }
 
        curr_channel = nw_info->ch;