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