From: Maharaja Kennadyrajan <mkenna@codeaurora.org>
To: ath11k@lists.infradead.org
Cc: Maharaja Kennadyrajan <mkenna@codeaurora.org>
Subject: [PATCH] ath11k: Avoid unnecessary WARN_ON() in ath11k_dp_tx_complete_msdu()
Date: Wed, 12 Jun 2019 16:19:13 +0530 [thread overview]
Message-ID: <1560336554-14420-6-git-send-email-mkenna@codeaurora.org> (raw)
In-Reply-To: <1560336554-14420-1-git-send-email-mkenna@codeaurora.org>
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(-)
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;
}
--
2.21.0
_______________________________________________
ath11k mailing list
ath11k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath11k
next prev parent reply other threads:[~2019-06-12 10:48 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-06-12 10:49 [PATCH] ath11k: Removed MICHAEL_MIC_LEN and use IEEE80211_CCMP_MIC_LEN Maharaja Kennadyrajan
2019-06-12 10:49 ` [PATCH] ath11k: Removed unnecessary spaces before 'else if' Maharaja Kennadyrajan
2019-06-17 8:48 ` Kalle Valo
2019-06-12 10:49 ` [PATCH 0/2] Added prefix in dp_tx.c and dp_rx.c files Maharaja Kennadyrajan
2019-06-12 10:49 ` [PATCH 1/2] ath11k: Added 'ath11k' as prefix to the struct dp_htt_wbm_tx_status Maharaja Kennadyrajan
2019-06-17 8:49 ` Kalle Valo
2019-06-12 10:49 ` [PATCH 2/2] ath11k: Added prefix to all the functions in dp_tx.c file Maharaja Kennadyrajan
2019-06-12 10:49 ` Maharaja Kennadyrajan [this message]
2019-06-17 8:50 ` [PATCH] ath11k: Avoid unnecessary WARN_ON() in ath11k_dp_tx_complete_msdu() Kalle Valo
2019-06-12 10:49 ` [PATCH] ath11k: Use firmware_request_nowarn to load firmware Maharaja Kennadyrajan
2019-06-17 8:50 ` Kalle Valo
2019-06-17 8:47 ` [PATCH] ath11k: Removed MICHAEL_MIC_LEN and use IEEE80211_CCMP_MIC_LEN Kalle Valo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1560336554-14420-6-git-send-email-mkenna@codeaurora.org \
--to=mkenna@codeaurora.org \
--cc=ath11k@lists.infradead.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox