All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ath11k: code cleanup in CE
@ 2019-06-10  9:36 Karthikeyan Periyasamy
  2019-06-12 11:10 ` Kalle Valo
  0 siblings, 1 reply; 2+ messages in thread
From: Karthikeyan Periyasamy @ 2019-06-10  9:36 UTC (permalink / raw)
  To: ath11k; +Cc: Karthikeyan Periyasamy

Modify the WARN_ONCE() to WARN_ON_ONCE() with IS_ALIGNED() for
better code.

Signed-off-by: Karthikeyan Periyasamy <periyasa@codeaurora.org>
---
 drivers/net/wireless/ath/ath11k/ce.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/net/wireless/ath/ath11k/ce.c b/drivers/net/wireless/ath/ath11k/ce.c
index 8427620..b9a57ec 100644
--- a/drivers/net/wireless/ath/ath11k/ce.c
+++ b/drivers/net/wireless/ath/ath11k/ce.c
@@ -180,7 +180,7 @@ static int ath11k_ce_rx_post_pipe(struct ath11k_ce_pipe *pipe)
 			goto exit;
 		}
 
-		WARN_ONCE((unsigned long)skb->data & 3, "unaligned skb");
+		WARN_ON_ONCE(!IS_ALIGNED((unsigned long)skb->data, 4));
 
 		paddr = dma_map_single(sc->dev, skb->data,
 				       skb->len + skb_tailroom(skb),
-- 
1.9.1


_______________________________________________
ath11k mailing list
ath11k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath11k

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] ath11k: code cleanup in CE
  2019-06-10  9:36 [PATCH] ath11k: code cleanup in CE Karthikeyan Periyasamy
@ 2019-06-12 11:10 ` Kalle Valo
  0 siblings, 0 replies; 2+ messages in thread
From: Kalle Valo @ 2019-06-12 11:10 UTC (permalink / raw)
  To: Karthikeyan Periyasamy; +Cc: ath11k

Karthikeyan Periyasamy <periyasa@codeaurora.org> wrote:

> Modify the WARN_ONCE() to WARN_ON_ONCE() with IS_ALIGNED() for
> better code.
> 
> Signed-off-by: Karthikeyan Periyasamy <periyasa@codeaurora.org>
> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>

Patch applied to ath11k-bringup branch of ath.git, thanks.

d7d29ad0c568 ath11k: code cleanup in CE

-- 
https://patchwork.kernel.org/patch/10984577/

https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches


_______________________________________________
ath11k mailing list
ath11k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath11k

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-06-12 11:10 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-06-10  9:36 [PATCH] ath11k: code cleanup in CE Karthikeyan Periyasamy
2019-06-12 11:10 ` Kalle Valo

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.