diff options
author | Johannes Berg <johannes.berg@intel.com> | 2014-04-29 17:52:36 +0200 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2014-04-29 17:59:19 +0200 |
commit | 2fd0511556538a2d713e7a3d032c51cfe0117642 (patch) | |
tree | 52eab33a88470d742652056bc66b8926da8f73ab /net/wireless/core.c | |
parent | f55ee0834247c88cb6981cb11eb1870392878371 (diff) | |
download | op-kernel-dev-2fd0511556538a2d713e7a3d032c51cfe0117642.zip op-kernel-dev-2fd0511556538a2d713e7a3d032c51cfe0117642.tar.gz |
cfg80211: remove BUG_ON usage
These really can't trigger unless somebody messes up the code,
but don't make debugging it needlessly complicated, WARN and
return instead of BUG_ON().
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'net/wireless/core.c')
-rw-r--r-- | net/wireless/core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/wireless/core.c b/net/wireless/core.c index b3ff369..f509da4 100644 --- a/net/wireless/core.c +++ b/net/wireless/core.c @@ -690,7 +690,7 @@ void wiphy_unregister(struct wiphy *wiphy) rtnl_lock(); rdev->wiphy.registered = false; - BUG_ON(!list_empty(&rdev->wdev_list)); + WARN_ON(!list_empty(&rdev->wdev_list)); /* * First remove the hardware from everywhere, this makes |