summaryrefslogtreecommitdiff
path: root/net/wireless/nl80211.c
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2012-12-03 17:36:09 (GMT)
committerJohannes Berg <johannes.berg@intel.com>2013-01-03 12:01:24 (GMT)
commitfdc9d7b2863ce67f51ed64f89e5b20f3077be569 (patch)
treeba92e30e9cfe3e4ecc6d5ca05397e357a112602e /net/wireless/nl80211.c
parentf41737669d2f4c07c09e90767498243e142171f9 (diff)
downloadlinux-fsl-qoriq-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 5fbc8cd..9c2c918 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;