static inline int iwl_trans_send_cmd(struct iwl_trans *trans,
                                struct iwl_host_cmd *cmd)
 {
-       if (trans->state != IWL_TRANS_FW_ALIVE)
-               IWL_ERR(trans, "%s bad state = %d", __func__, trans->state);
+       WARN_ONCE(trans->state != IWL_TRANS_FW_ALIVE,
+                 "%s bad state = %d", __func__, trans->state);
 
        return trans->ops->send_cmd(trans, cmd);
 }
                                 int tid, int txq_id, int ssn,
                                 struct sk_buff_head *skbs)
 {
-       if (trans->state != IWL_TRANS_FW_ALIVE)
-               IWL_ERR(trans, "%s bad state = %d", __func__, trans->state);
+       WARN_ONCE(trans->state != IWL_TRANS_FW_ALIVE,
+                 "%s bad state = %d", __func__, trans->state);
 
        return trans->ops->reclaim(trans, sta_id, tid, txq_id, ssn, skbs);
 }
 static inline int iwl_trans_tx_agg_disable(struct iwl_trans *trans,
                                            int sta_id, int tid)
 {
-       if (trans->state != IWL_TRANS_FW_ALIVE)
-               IWL_ERR(trans, "%s bad state = %d", __func__, trans->state);
+       WARN_ONCE(trans->state != IWL_TRANS_FW_ALIVE,
+                 "%s bad state = %d", __func__, trans->state);
 
        return trans->ops->tx_agg_disable(trans, sta_id, tid);
 }
 static inline int iwl_trans_tx_agg_alloc(struct iwl_trans *trans,
                                         int sta_id, int tid)
 {
-       if (trans->state != IWL_TRANS_FW_ALIVE)
-               IWL_ERR(trans, "%s bad state = %d", __func__, trans->state);
+       WARN_ONCE(trans->state != IWL_TRANS_FW_ALIVE,
+                 "%s bad state = %d", __func__, trans->state);
 
        return trans->ops->tx_agg_alloc(trans, sta_id, tid);
 }
 {
        might_sleep();
 
-       if (trans->state != IWL_TRANS_FW_ALIVE)
-               IWL_ERR(trans, "%s bad state = %d", __func__, trans->state);
+       WARN_ONCE(trans->state != IWL_TRANS_FW_ALIVE,
+                 "%s bad state = %d", __func__, trans->state);
 
        trans->ops->tx_agg_setup(trans, ctx, sta_id, tid, frame_limit, ssn);
 }
 
 static inline int iwl_trans_wait_tx_queue_empty(struct iwl_trans *trans)
 {
-       if (trans->state != IWL_TRANS_FW_ALIVE)
-               IWL_ERR(trans, "%s bad state = %d", __func__, trans->state);
+       WARN_ONCE(trans->state != IWL_TRANS_FW_ALIVE,
+                 "%s bad state = %d", __func__, trans->state);
 
        return trans->ops->wait_tx_queue_empty(trans);
 }
 
 static inline int iwl_trans_check_stuck_queue(struct iwl_trans *trans, int q)
 {
-       if (trans->state != IWL_TRANS_FW_ALIVE)
-               IWL_ERR(trans, "%s bad state = %d", __func__, trans->state);
+       WARN_ONCE(trans->state != IWL_TRANS_FW_ALIVE,
+                 "%s bad state = %d", __func__, trans->state);
 
        return trans->ops->check_stuck_queue(trans, q);
 }