]> www.infradead.org Git - users/jedix/linux-maple.git/commit
wifi: rtw89: 8851b: use 'int' as return type of error code pwr_{on,off}_func()
authorPing-Ke Shih <pkshih@realtek.com>
Wed, 9 Oct 2024 00:42:57 +0000 (08:42 +0800)
committerPing-Ke Shih <pkshih@realtek.com>
Sun, 20 Oct 2024 02:31:37 +0000 (10:31 +0800)
commit66595e31988626aab629c7b819c5236351d42453
tree3a84872d9deee1fe2adf85418b9750b689cf2542
parent778e2478d19574508861bcb1806d6e34d095587c
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
drivers/net/wireless/realtek/rtw89/rtw8851b.c