]> git.baikalelectronics.ru Git - kernel.git/commit
rtw88: Fix return value of rtw_wow_check_fw_status
authorChin-Yen Lee <timlee@realtek.com>
Mon, 3 Feb 2020 06:01:57 +0000 (14:01 +0800)
committerKalle Valo <kvalo@codeaurora.org>
Mon, 3 Feb 2020 18:10:31 +0000 (20:10 +0200)
commit65150bb37d7c110fd492e82cace2b6bf0328396b
tree3f992afd6e8feb951ffa4d9b4b6fb9779b7b4510
parente932b75c88d75b63023c37762b7952c25433f585
rtw88: Fix return value of rtw_wow_check_fw_status

Clang warns that ret is used uninitialzed.
And we found that actually the return type should be "int" instead
of "bool".

Fixes: 950f7af1fe85 ("rtw88: support wowlan feature for 8822c")
Link: https://github.com/ClangBuiltLinux/linux/issues/850
Reported-by: Nathan Chancellor <natechancellor@gmail.com>
Signed-off-by: Chin-Yen Lee <timlee@realtek.com>
Signed-off-by: Yan-Hsuan Chuang <yhchuang@realtek.com>
Reviewed-by: Nathan Chancellor <natechancellor@gmail.com>
Tested-by: Nathan Chancellor <natechancellor@gmail.com> # build
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/realtek/rtw88/wow.c