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)
commitebe8e6116ac49d182b060f843904caf5eacf5b87
tree3f992afd6e8feb951ffa4d9b4b6fb9779b7b4510
parent577ddbee1f43a355cc733829da96c8ffb3b99cc5
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: 44bc17f7f5b3 ("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