Skip to contentSkip to conversation

ath11k: code cleanup in CE

PATCH In review Karthikeyan Periyasamy 2 participants 2 messages Jun 10, 2019 – Jun 12, 2019 Qualcomm Atheros ATH11K wireless driver

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ath11k: code cleanup in CE

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

---
 drivers/net/wireless/ath/ath11k/ce.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/wireless/ath/ath11k/ce.c +1 -1
index 8427620..b9a57ec 100644
@@ -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),
Signature · 7 lines
1.9.1


_______________________________________________
ath11k mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/ath11k
#1 lore raw
Quoted 5 lines · Karthikeyan Periyasamy

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

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

d7d29ad0c568 ath11k: code cleanup in CE

Signature · 9 lines
https://patchwork.kernel.org/patch/10984577/

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


_______________________________________________
ath11k mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/ath11k