ath11k: code cleanup in CE
PATCH 1/1 ath11k: code cleanup in CE
Modify the WARN_ONCE() to WARN_ON_ONCE() with IS_ALIGNED() for better code.
Signed-off-by Karthikeyan Periyasamy <[email protected]>
--- drivers/net/wireless/ath/ath11k/ce.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/wireless/ath/ath11k/ce.c +1 -1
@@ -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
Quoted 5 lines · Karthikeyan Periyasamy
Modify the
WARN_ONCE()toWARN_ON_ONCE()withIS_ALIGNED()for better code.Signed-off-by Karthikeyan Periyasamy <[email protected]>Signed-off-by Kalle Valo <[email protected]>
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