RE: [PATCH] wifi: rtl8xxxu: Use swap() to improve rtl8xxxu_switch_ports()

From: Ping-Ke Shih
Date: Wed Jul 10 2024 - 20:21:01 EST


Thorsten Blum <thorsten.blum@xxxxxxxxxx> wrote:
> Use the swap() macro to simplify the rtl8xxxu_switch_ports() function
> and improve its readability. Remove the local variable vif.
>
> 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://patch.msgid.link/20240619024017.53246-1-jiapeng.chong@xxxxxxxxxxxxxxxxx