]> git.ipfire.org Git - thirdparty/linux.git/commit
wifi: rtw89: use int type to store negative error codes
authorQianfeng Rong <rongqianfeng@vivo.com>
Wed, 27 Aug 2025 15:06:19 +0000 (23:06 +0800)
committerPing-Ke Shih <pkshih@realtek.com>
Mon, 1 Sep 2025 03:27:36 +0000 (11:27 +0800)
commita650d86bcaf555f45019f38d5c1d996556141bbe
treeb2642accd87e0bae43f44a66b098903ef79bd8d7
parente83a2a996b5cbf5398375d9b0b19d2b6bd27a18d
wifi: rtw89: use int type to store negative error codes

The 'ret' variable stores returns from other functions, which return
either zero on success or negative error codes on failure.  Storing
error codes in u32 (an unsigned type) causes no runtime issues but is
stylistically inconsistent and very ugly.  Change 'ret' from u32 to
int - this has no runtime impact.

Signed-off-by: Qianfeng Rong <rongqianfeng@vivo.com>
Acked-by: Ping-Ke Shih <pkshih@realtek.com>
Signed-off-by: Ping-Ke Shih <pkshih@realtek.com>
Link: https://patch.msgid.link/20250827150620.550641-1-rongqianfeng@vivo.com
drivers/net/wireless/realtek/rtw89/fw.c
drivers/net/wireless/realtek/rtw89/mac.c
drivers/net/wireless/realtek/rtw89/pci.c