rtw89: fix error function parameter
authorLv Ruyi <lv.ruyi@zte.com.cn>
Thu, 21 Oct 2021 04:20:35 +0000 (04:20 +0000)
committerKalle Valo <kvalo@codeaurora.org>
Wed, 27 Oct 2021 07:35:50 +0000 (10:35 +0300)
commitdea857700a75943017488b1d47f6687cfc037642
treeac7c79fc0d4e4cbf234b17ccb3f99abc8f817d6d
parent9692151e2fe7a326bafe99836fd1f20a2cc3a049
rtw89: fix error function parameter

This patch fixes the following Coccinelle warning:
drivers/net/wireless/realtek/rtw89/rtw8852a.c:753:
WARNING  possible condition with no effect (if == else)

Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: Lv Ruyi <lv.ruyi@zte.com.cn>
Acked-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20211021042035.1042463-1-lv.ruyi@zte.com.cn
drivers/net/wireless/realtek/rtw89/rtw8852a.c