Re: [PATCH] wifi: ath9k: Use swap() to improve ath9k_hw_get_nf_hist_mid()
From: Kalle Valo
Date: Thu Aug 01 2024 - 10:59:37 EST
Thorsten Blum <thorsten.blum@xxxxxxxxxx> wrote:
> Use the swap() macro to simplify the ath9k_hw_get_nf_hist_mid() function
> and improve its readability.
>
> Fixes the following Coccinelle/coccicheck warning reported by
> swap.cocci:
>
> WARNING opportunity for swap()
>
> Compile-tested only.
>
> Signed-off-by: Thorsten Blum <thorsten.blum@xxxxxxxxxx>
> Acked-by: Toke Høiland-Jørgensen <toke@xxxxxxx>
> Signed-off-by: Kalle Valo <quic_kvalo@xxxxxxxxxxx>
Patch applied to ath-next branch of ath.git, thanks.
215a19631d11 wifi: ath9k: Use swap() to improve ath9k_hw_get_nf_hist_mid()
--
https://patchwork.kernel.org/project/linux-wireless/patch/20240710185743.709742-2-thorsten.blum@xxxxxxxxxx/
https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches