wifi: rtw89: 8852b: use 'int' as return type of error code pwr_{on,off}_func()
authorPing-Ke Shih <pkshih@realtek.com>
Wed, 9 Oct 2024 00:42:58 +0000 (08:42 +0800)
committerPing-Ke Shih <pkshih@realtek.com>
Sun, 20 Oct 2024 02:31:46 +0000 (10:31 +0800)
commit50e9febff35fd5306973283f745abf15e2c5aba1
tree0d619d0d97257974b69b061da74e6c8989dd5fc8
parent66595e31988626aab629c7b819c5236351d42453
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
drivers/net/wireless/realtek/rtw89/rtw8852b.c