Message ID | 1560159408-5702-1-git-send-email-periyasa@codeaurora.org (mailing list archive) |
---|---|
State | Accepted |
Commit | d7d29ad0c568f1c1529eeef2820dadf9a2840615 |
Delegated to: | Kalle Valo |
Headers | show |
Series | ath11k: code cleanup in CE | expand |
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
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),
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(-)