]> git.baikalelectronics.ru Git - kernel.git/commit
rtw89: Remove redundant check of ret after call to rtw89_mac_enable_bb_rf
authorColin Ian King <colin.king@canonical.com>
Fri, 15 Oct 2021 15:21:13 +0000 (16:21 +0100)
committerKalle Valo <kvalo@codeaurora.org>
Mon, 18 Oct 2021 12:31:24 +0000 (15:31 +0300)
commitc5830525dc2809387777b04038019b7a90412cb6
treec36654a63a25b113272c8750a911f465242ee6d4
parent1719731b0d37c4d4ebb56e7771e958f7ed5ebc3d
rtw89: Remove redundant check of ret after call to rtw89_mac_enable_bb_rf

The function rtw89_mac_enable_bb_rf is a void return type, so there is
no return error code to ret, so the following check for an error in ret
is redundant dead code and can be removed.

Addresses-Coverity: ("Logically dead code")
Fixes: 9c5adf19c17c ("rtw89: add Realtek 802.11ax driver")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Acked-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20211015152113.33179-1-colin.king@canonical.com
drivers/net/wireless/realtek/rtw89/mac.c