From a0e8045e6ecf982c73f6d4baa4683cad41a572c7 Mon Sep 17 00:00:00 2001 From: HariPrasath Elango Date: Tue, 20 Mar 2018 17:44:49 +0530 Subject: [PATCH] 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 Signed-off-by: Greg Kroah-Hartman --- drivers/staging/wilc1000/wilc_wfi_cfgoperations.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/drivers/staging/wilc1000/wilc_wfi_cfgoperations.c b/drivers/staging/wilc1000/wilc_wfi_cfgoperations.c index 9d8d5d08b4f1..730d64f2f46a 100644 --- a/drivers/staging/wilc1000/wilc_wfi_cfgoperations.c +++ b/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; -- 2.30.2