summaryrefslogtreecommitdiff
path: root/net/wireless/nl80211.c
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2012-12-03 21:36:09 +0400
committerJohannes Berg <johannes.berg@intel.com>2013-01-03 16:01:24 +0400
commitfdc9d7b2863ce67f51ed64f89e5b20f3077be569 (patch)
treeba92e30e9cfe3e4ecc6d5ca05397e357a112602e /net/wireless/nl80211.c
parentf41737669d2f4c07c09e90767498243e142171f9 (diff)
downloadlinux-fdc9d7b2863ce67f51ed64f89e5b20f3077be569.tar.xz
regulatory: remove BUG_ON
This code is a bit too BUG_ON happy, remove all instances and while doing so make some code a bit smarter by passing the right pointer instead of indices into arrays. Acked-by: Luis R. Rodriguez <mcgrof@do-not-panic.com> Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/wireless/nl80211.c')
-rw-r--r--net/wireless/nl80211.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c
index 5fbc8cd9731b..9c2c91845be7 100644
--- a/net/wireless/nl80211.c
+++ b/net/wireless/nl80211.c
@@ -4309,8 +4309,6 @@ static int nl80211_set_reg(struct sk_buff *skb, struct genl_info *info)
}
}
- BUG_ON(rule_idx != num_rules);
-
r = set_regdom(rd);
rd = NULL;