Skip to content

Commit

Permalink
staging: wilc1000: replace switch statement by simple if condition
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
HariPrasath Elango authored and Greg Kroah-Hartman committed Mar 22, 2018
1 parent 5fa7ed3 commit a0e8045
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions drivers/staging/wilc1000/wilc_wfi_cfgoperations.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit a0e8045

Please sign in to comment.