void iwl_free_tfds_in_queue(struct iwl_priv *priv,
                            int sta_id, int tid, int freed)
 {
-       WARN_ON(!spin_is_locked(&priv->sta_lock));
+       lockdep_assert_held(&priv->sta_lock);
 
        if (priv->stations[sta_id].tid[tid].tfds_in_queue >= freed)
                priv->stations[sta_id].tid[tid].tfds_in_queue -= freed;
 
        u8 *addr = priv->stations[sta_id].sta.sta.addr;
        struct iwl_tid_data *tid_data = &priv->stations[sta_id].tid[tid];
 
-       WARN_ON(!spin_is_locked(&priv->sta_lock));
+       lockdep_assert_held(&priv->sta_lock);
 
        switch (priv->stations[sta_id].tid[tid].agg.state) {
        case IWL_EMPTYING_HW_QUEUE_DELBA:
 
 
 static int iwl_scan_initiate(struct iwl_priv *priv, struct ieee80211_vif *vif)
 {
-       WARN_ON(!mutex_is_locked(&priv->mutex));
+       lockdep_assert_held(&priv->mutex);
 
        IWL_DEBUG_INFO(priv, "Starting scan...\n");
        set_bit(STATUS_SCANNING, &priv->status);
 
 
 int iwl_restore_default_wep_keys(struct iwl_priv *priv)
 {
-       WARN_ON(!mutex_is_locked(&priv->mutex));
+       lockdep_assert_held(&priv->mutex);
 
        return iwl_send_static_wepkey_cmd(priv, 0);
 }
 {
        int ret;
 
-       WARN_ON(!mutex_is_locked(&priv->mutex));
+       lockdep_assert_held(&priv->mutex);
 
        IWL_DEBUG_WEP(priv, "Removing default WEP key: idx=%d\n",
                      keyconf->keyidx);
 {
        int ret;
 
-       WARN_ON(!mutex_is_locked(&priv->mutex));
+       lockdep_assert_held(&priv->mutex);
 
        if (keyconf->keylen != WEP_KEY_LEN_128 &&
            keyconf->keylen != WEP_KEY_LEN_64) {