[PATCH] wifi: ath12k: remove memset with byte count of 278528
Kalle Valo
kvalo at kernel.org
Fri Feb 24 02:23:49 PST 2023
Kalle Valo <kvalo at kernel.org> wrote:
> Sparse warns:
>
> drivers/net/wireless/ath/ath12k/dp.c:1471:15: warning: memset with byte count of 278528
>
> There's no need to use memset() here, instead call dma_alloc_coherent() with __GFP_ZERO.
>
> While at it, remove an extra line before the error handler.
>
> Signed-off-by: Kalle Valo <quic_kvalo at quicinc.com>
Patch applied to ath-next branch of ath.git, thanks.
28013c356296 wifi: ath12k: remove memset with byte count of 278528
--
https://patchwork.kernel.org/project/linux-wireless/patch/20230222164014.860-1-kvalo@kernel.org/
https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
More information about the ath12k
mailing list