Browse Source

staging: wilc1000: replace switch statement by simple if condition

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>
HariPrasath Elango 7 years ago
parent
commit
a0e8045e6e
1 changed files with 1 additions and 7 deletions
  1. 1 7
      drivers/staging/wilc1000/wilc_wfi_cfgoperations.c

+ 1 - 7
drivers/staging/wilc1000/wilc_wfi_cfgoperations.c

@@ -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;