diff options
author | Johannes Berg <johannes.berg@intel.com> | 2012-12-03 17:36:09 (GMT) |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2013-01-03 12:01:24 (GMT) |
commit | fdc9d7b2863ce67f51ed64f89e5b20f3077be569 (patch) | |
tree | ba92e30e9cfe3e4ecc6d5ca05397e357a112602e /net/wireless/nl80211.c | |
parent | f41737669d2f4c07c09e90767498243e142171f9 (diff) | |
download | linux-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.c | 2 |
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; |