aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/wlan-ng/cfg80211.c
diff options
context:
space:
mode:
authorJon Eyolfson <jon@eyl.io>2016-09-17 19:49:55 -0400
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-09-18 09:13:35 +0200
commite63ecbc774d98062cfa6b5c2ef4ecc0d1d732242 (patch)
tree5ecc250d50e204f0e7e43c33c16f7c23503de086 /drivers/staging/wlan-ng/cfg80211.c
parentstaging: olpc_dcon: Replace a bit shift by a use of BIT. (diff)
downloadlinux-dev-e63ecbc774d98062cfa6b5c2ef4ecc0d1d732242.tar.xz
linux-dev-e63ecbc774d98062cfa6b5c2ef4ecc0d1d732242.zip
staging: wlan-ng: if statement style cleanup
Changed if statement bodies from 2 levels deeper than if statement to 1. Signed-off-by: Jon Eyolfson <jon@eyl.io> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/wlan-ng/cfg80211.c')
-rw-r--r--drivers/staging/wlan-ng/cfg80211.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/staging/wlan-ng/cfg80211.c b/drivers/staging/wlan-ng/cfg80211.c
index 884d0d574111..28be3140ccf4 100644
--- a/drivers/staging/wlan-ng/cfg80211.c
+++ b/drivers/staging/wlan-ng/cfg80211.c
@@ -476,11 +476,11 @@ static int prism2_connect(struct wiphy *wiphy, struct net_device *dev,
/* Set the authorization */
if ((sme->auth_type == NL80211_AUTHTYPE_OPEN_SYSTEM) ||
- ((sme->auth_type == NL80211_AUTHTYPE_AUTOMATIC) && !is_wep))
- msg_join.authtype.data = P80211ENUM_authalg_opensystem;
+ ((sme->auth_type == NL80211_AUTHTYPE_AUTOMATIC) && !is_wep))
+ msg_join.authtype.data = P80211ENUM_authalg_opensystem;
else if ((sme->auth_type == NL80211_AUTHTYPE_SHARED_KEY) ||
- ((sme->auth_type == NL80211_AUTHTYPE_AUTOMATIC) && is_wep))
- msg_join.authtype.data = P80211ENUM_authalg_sharedkey;
+ ((sme->auth_type == NL80211_AUTHTYPE_AUTOMATIC) && is_wep))
+ msg_join.authtype.data = P80211ENUM_authalg_sharedkey;
else
netdev_warn(dev,
"Unhandled authorisation type for connect (%d)\n",