wifi: rtw89: Remove the redundant else branch in the function rtw89_phy_get_kpath
authorJiapeng Chong <jiapeng.chong@linux.alibaba.com>
Mon, 22 Apr 2024 07:29:22 +0000 (15:29 +0800)
committerPing-Ke Shih <pkshih@realtek.com>
Mon, 29 Apr 2024 01:38:22 +0000 (09:38 +0800)
commit5eb027019fa3a5ee7d1ab12e31200afa00d5cb76
treea77e28a7543f9a4ca53d7794742091b0a3786618
parent416a445ec328c53ad5f24e000182ac027f0f9cf5
wifi: rtw89: Remove the redundant else branch in the function rtw89_phy_get_kpath

The assignment of the else and if branches is the same in the "case:
MLO_2_PLUS_0_1RF" branch of the function rtw89_phy_get_kpath, so we
remove it and add comments here to make the code easier to understand.

./drivers/net/wireless/realtek/rtw89/phy.c:6406:2-4: WARNING: possible condition with no effect (if == else).

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