aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/wlan-ng
diff options
context:
space:
mode:
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-10-27 18:56:09 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-10-27 18:56:09 +0100
commitcce430450e190e06bac680fe1dbec1f9bf891343 (patch)
tree291cbe809c97a5d280e292fec2e9086aa9ebd0e4 /drivers/staging/wlan-ng
parentstaging: rtl8712: Remove lines before a close brace (diff)
parentLinux 5.4-rc5 (diff)
downloadlinux-dev-cce430450e190e06bac680fe1dbec1f9bf891343.tar.xz
linux-dev-cce430450e190e06bac680fe1dbec1f9bf891343.zip
Merge 5.4-rc5 into staging-next
We want the staging fixes in here for testing and building on. Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/wlan-ng')
-rw-r--r--drivers/staging/wlan-ng/cfg80211.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/staging/wlan-ng/cfg80211.c b/drivers/staging/wlan-ng/cfg80211.c
index eee1998c4b18..fac38c842ac5 100644
--- a/drivers/staging/wlan-ng/cfg80211.c
+++ b/drivers/staging/wlan-ng/cfg80211.c
@@ -469,10 +469,8 @@ static int prism2_connect(struct wiphy *wiphy, struct net_device *dev,
/* Set the encryption - we only support wep */
if (is_wep) {
if (sme->key) {
- if (sme->key_idx >= NUM_WEPKEYS) {
- err = -EINVAL;
- goto exit;
- }
+ if (sme->key_idx >= NUM_WEPKEYS)
+ return -EINVAL;
result = prism2_domibset_uint32(wlandev,
DIDMIB_DOT11SMT_PRIVACYTABLE_WEPDEFAULTKEYID,