diff options
Diffstat (limited to 'net/mac80211/key.c')
-rw-r--r-- | net/mac80211/key.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/net/mac80211/key.c b/net/mac80211/key.c index f13d46b2c13c..0b2328f7d67c 100644 --- a/net/mac80211/key.c +++ b/net/mac80211/key.c | |||
@@ -121,7 +121,6 @@ struct ieee80211_key *ieee80211_key_alloc(struct ieee80211_sub_if_data *sdata, | |||
121 | struct ieee80211_key *key; | 121 | struct ieee80211_key *key; |
122 | 122 | ||
123 | BUG_ON(idx < 0 || idx >= NUM_DEFAULT_KEYS); | 123 | BUG_ON(idx < 0 || idx >= NUM_DEFAULT_KEYS); |
124 | BUG_ON(alg == ALG_NONE); | ||
125 | 124 | ||
126 | key = kzalloc(sizeof(struct ieee80211_key) + key_len, GFP_KERNEL); | 125 | key = kzalloc(sizeof(struct ieee80211_key) + key_len, GFP_KERNEL); |
127 | if (!key) | 126 | if (!key) |