]> www.infradead.org Git - users/jedix/linux-maple.git/commit
wifi: rtw89: 8852c: use 'int' as return type of error code pwr_{on,off}_func()
authorPing-Ke Shih <pkshih@realtek.com>
Wed, 9 Oct 2024 00:43:00 +0000 (08:43 +0800)
committerPing-Ke Shih <pkshih@realtek.com>
Sun, 20 Oct 2024 02:32:02 +0000 (10:32 +0800)
commit74432751ff638be0b343494cdb3e8c4624ac0093
tree9917bc0554735897271714629391f8d1507620f9
parentc72c54fd96d0e70e34386cf5b0da4d146a268df5
wifi: rtw89: 8852c: use 'int' as return type of error code pwr_{on,off}_func()

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

Addresses-Coverity-ID: 1626056 ("Overflowed constant")
Addresses-Coverity-ID: 1627945 ("Overflowed constant")

Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Link: https://patch.msgid.link/20241009004300.8144-7-pkshih@realtek.com
drivers/net/wireless/realtek/rtw89/rtw8852c.c