提交 7edfab7a 编写于 作者: J Johannes Berg 提交者: John W. Linville

cfg80211: convert mutex assert to macro

That will make the various cases where the WARN_ON
can happen distinguishable.
Signed-off-by: NJohannes Berg <johannes@sipsolutions.net>
Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
上级 4312a86b
......@@ -73,10 +73,7 @@ bool wiphy_idx_valid(int wiphy_idx)
extern struct mutex cfg80211_mutex;
extern struct list_head cfg80211_drv_list;
static inline void assert_cfg80211_lock(void)
{
WARN_ON(!mutex_is_locked(&cfg80211_mutex));
}
#define assert_cfg80211_lock() WARN_ON(!mutex_is_locked(&cfg80211_mutex))
/*
* You can use this to mark a wiphy_idx as not having an associated wiphy.
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册