]> www.infradead.org Git - users/jedix/linux-maple.git/commit
wifi: rtl8xxxu: use swap() in rtl8xxxu_switch_ports()
authorJiapeng Chong <jiapeng.chong@linux.alibaba.com>
Wed, 19 Jun 2024 02:40:17 +0000 (10:40 +0800)
committerPing-Ke Shih <pkshih@realtek.com>
Fri, 21 Jun 2024 12:46:03 +0000 (20:46 +0800)
commit6c3b5970b0c408e39d776113cf4624c1f551d68b
tree4594ef9824d003460600ee583adf8d0a44417f7f
parentd7dd13ea54af8496aca2762a758d817d6813e81c
wifi: rtl8xxxu: use swap() in rtl8xxxu_switch_ports()

Use existing swap() function rather than duplicating its implementation.

./drivers/net/wireless/realtek/rtl8xxxu/core.c:6749:30-31: WARNING opportunity for swap().

Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=9358
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Link: https://patch.msgid.link/20240619024017.53246-1-jiapeng.chong@linux.alibaba.com
drivers/net/wireless/realtek/rtl8xxxu/core.c