Message ID | 1560336554-14420-6-git-send-email-mkenna@codeaurora.org (mailing list archive) |
---|---|
State | Accepted |
Commit | f6598b82d86a689c19d9b7c74e8fe3bbdbe3facc |
Delegated to: | Kalle Valo |
Headers | show |
Series | ath11k: Avoid unnecessary WARN_ON() in ath11k_dp_tx_complete_msdu() | expand |
Maharaja Kennadyrajan <mkenna@codeaurora.org> wrote: > In order to avoid unnecessary WARN_ON in the function > ath11k_dp_tx_complete_msdu, changed that WARN_ON to WARN_ON_ONCE. > > Signed-off-by: Maharaja Kennadyrajan <mkenna@codeaurora.org> > Signed-off-by: Kalle Valo <kvalo@codeaurora.org> Patch applied to ath11k-bringup branch of ath.git, thanks. f6598b82d86a ath11k: Avoid unnecessary WARN_ON() in ath11k_dp_tx_complete_msdu()
diff --git a/drivers/net/wireless/ath/ath11k/dp_tx.c b/drivers/net/wireless/ath/ath11k/dp_tx.c index 5670796da05b..45db589f8141 100644 --- a/drivers/net/wireless/ath/ath11k/dp_tx.c +++ b/drivers/net/wireless/ath/ath11k/dp_tx.c @@ -358,7 +358,7 @@ static void ath11k_dp_tx_complete_msdu(struct ath11k *ar, struct ieee80211_tx_info *info; struct ath11k_skb_cb *skb_cb; - if (WARN_ON(ts->buf_rel_source != HAL_WBM_REL_SRC_MODULE_TQM)) { + if (WARN_ON_ONCE(ts->buf_rel_source != HAL_WBM_REL_SRC_MODULE_TQM)) { /* Must not happen */ return; }
In order to avoid unnecessary WARN_ON in the function ath11k_dp_tx_complete_msdu, changed that WARN_ON to WARN_ON_ONCE. Signed-off-by: Maharaja Kennadyrajan <mkenna@codeaurora.org> --- drivers/net/wireless/ath/ath11k/dp_tx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)