cfg80211/mac80211: use lockdep_assert_held
Instead of using a WARN_ON(!mutex_is_locked()) use lockdep_assert_held() which compiles away completely when lockdep isn't enabled, and also is a more accurate assertion since it checks that the current thread is holding the mutex. Signed-off-by:Johannes Berg <johannes.berg@intel.com> Signed-off-by:
John W. Linville <linville@tuxdriver.com>
Showing
- net/mac80211/chan.c 1 addition, 1 deletionnet/mac80211/chan.c
- net/mac80211/key.c 1 addition, 1 deletionnet/mac80211/key.c
- net/mac80211/mlme.c 1 addition, 1 deletionnet/mac80211/mlme.c
- net/mac80211/sta_info.c 1 addition, 1 deletionnet/mac80211/sta_info.c
- net/mac80211/util.c 2 additions, 2 deletionsnet/mac80211/util.c
- net/wireless/core.h 6 additions, 3 deletionsnet/wireless/core.h
- net/wireless/reg.c 5 additions, 1 deletionnet/wireless/reg.c
Loading
Please register or sign in to comment