wifi: rtw89: 8852b: use 'int' as return type of error code pwr_{on,off}_func()

The return type of error code of rtw8852b_pwr_{on,off}_func() and its
callee is 'int'. Correct it.

Addresses-Coverity-ID: 1622433 ("Overflowed constant")
Addresses-Coverity-ID: 1630710 ("Overflowed constant")

Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Link: https://patch.msgid.link/20241009004300.8144-5-pkshih@realtek.com
This commit is contained in:
Ping-Ke Shih 2024-10-09 08:42:58 +08:00
parent 66595e3198
commit 50e9febff3

View File

@ -254,7 +254,7 @@ static void rtw8852b_pwr_sps_ana(struct rtw89_dev *rtwdev)
static int rtw8852b_pwr_on_func(struct rtw89_dev *rtwdev)
{
u32 val32;
u32 ret;
int ret;
rtw8852b_pwr_sps_ana(rtwdev);
@ -383,7 +383,7 @@ static int rtw8852b_pwr_on_func(struct rtw89_dev *rtwdev)
static int rtw8852b_pwr_off_func(struct rtw89_dev *rtwdev)
{
u32 val32;
u32 ret;
int ret;
rtw8852b_pwr_sps_ana(rtwdev);