mirror of
https://github.com/torvalds/linux.git
synced 2026-06-03 12:03:54 +02:00
wifi: rtw89: 8851b: use 'int' as return type of error code pwr_{on,off}_func()
The return type of error code of rtw8851b_pwr_{on,off}_func() and its
callee is 'int'. Correct it.
Addresses-Coverity-ID: 1624679 ("Overflowed constant")
Addresses-Coverity-ID: 1630970 ("Overflowed constant")
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Link: https://patch.msgid.link/20241009004300.8144-4-pkshih@realtek.com
This commit is contained in:
parent
778e2478d1
commit
66595e3198
|
|
@ -282,7 +282,7 @@ static int rtw8851b_pwr_on_func(struct rtw89_dev *rtwdev)
|
|||
{
|
||||
u32 val32;
|
||||
u8 val8;
|
||||
u32 ret;
|
||||
int ret;
|
||||
|
||||
rtw89_write32_clr(rtwdev, R_AX_SYS_PW_CTRL, B_AX_AFSM_WLSUS_EN |
|
||||
B_AX_AFSM_PCIE_SUS_EN);
|
||||
|
|
@ -401,7 +401,7 @@ static void rtw8851b_patch_swr_pfm2pwm(struct rtw89_dev *rtwdev)
|
|||
static int rtw8851b_pwr_off_func(struct rtw89_dev *rtwdev)
|
||||
{
|
||||
u32 val32;
|
||||
u32 ret;
|
||||
int ret;
|
||||
|
||||
ret = rtw89_mac_write_xtal_si(rtwdev, XTAL_SI_ANAPAR_WL, XTAL_SI_RFC2RF,
|
||||
XTAL_SI_RFC2RF);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user