diff options
Diffstat (limited to 'net/mac80211/ieee80211_ioctl.c')
-rw-r--r-- | net/mac80211/ieee80211_ioctl.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/net/mac80211/ieee80211_ioctl.c b/net/mac80211/ieee80211_ioctl.c index 5af23d318726..b047eebb6330 100644 --- a/net/mac80211/ieee80211_ioctl.c +++ b/net/mac80211/ieee80211_ioctl.c | |||
@@ -55,9 +55,6 @@ static int ieee80211_set_encryption(struct net_device *dev, u8 *sta_addr, | |||
55 | key = sta->key; | 55 | key = sta->key; |
56 | } | 56 | } |
57 | 57 | ||
58 | if (!key) | ||
59 | return -ENOENT; | ||
60 | |||
61 | ieee80211_key_free(key); | 58 | ieee80211_key_free(key); |
62 | return 0; | 59 | return 0; |
63 | } else { | 60 | } else { |