RE: [PATCH] wifi: rtw89: chan: Use swap() to improve rtw89_swap_sub_entity()

From: Ping-Ke Shih
Date: Wed Jul 10 2024 - 20:13:26 EST


Thorsten Blum <thorsten.blum@xxxxxxxxxx> wrote:
> Use the swap() macro to simplify the rtw89_swap_sub_entity() function
> and improve its readability. Remove the local variable tmp.
>
> 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>

The same patch [1] has been applied.

[1] https://lore.kernel.org/all/20240529020244.129027-1-jiapeng.chong@xxxxxxxxxxxxxxxxx/