staging: wilc1000: replace switch statement by simple if condition
PATCH 1/1 staging: wilc1000: replace switch statement by simple if condition
From: HariPrasath Elango <[email protected]>
In this case,there is only a single switch case statement.So replacing by a simple if condition.
Signed-off-by HariPrasath Elango <[email protected]>
--- drivers/staging/wilc1000/wilc_wfi_cfgoperations.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-)
drivers/staging/wilc1000/wilc_wfi_cfgoperations.c +1 -7
@@ -772,14 +772,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 = pstrNetworkInfo->ch;
Signature · 6 lines
2.10.0.GIT _______________________________________________ devel mailing list [email protected] http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel