cfg80211/mac80211: use lockdep_assert_held
[linux-2.6-block.git] / net / mac80211 / key.c
index 3570f8c2bb401d3d4d20cbac6dbc0fddfb395235..6a63d1abd14dab5117778bf524c630d19cfaf01e 100644 (file)
@@ -49,7 +49,7 @@ static const u8 bcast_addr[ETH_ALEN] = { 0xFF, 0xFF, 0xFF, 0xFF, 0xFF, 0xFF };
 
 static void assert_key_lock(struct ieee80211_local *local)
 {
-       WARN_ON(!mutex_is_locked(&local->key_mtx));
+       lockdep_assert_held(&local->key_mtx);
 }
 
 static struct ieee80211_sta *get_sta_for_key(struct ieee80211_key *key)