]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: wwan: iosm: use int type to store negative error codes
authorQianfeng Rong <rongqianfeng@vivo.com>
Tue, 26 Aug 2025 13:50:19 +0000 (21:50 +0800)
committerJakub Kicinski <kuba@kernel.org>
Thu, 28 Aug 2025 01:17:15 +0000 (18:17 -0700)
commitf0c88a0d83b26bcfbb3463d3a283bc08007a5ae0
treecd67d72012a39a0ee713141c8fdd0e8e91f6a3bc
parent6aff3699906bd1017fd9017bed133681b0eb8a42
net: wwan: iosm: use int type to store negative error codes

The 'ret' variable in ipc_pcie_resources_request() either stores '-EBUSY'
directly or holds returns from pci_request_regions() and ipc_acquire_irq().
Storing negative error codes in u32 causes no runtime issues but is
stylistically inconsistent and very ugly.  Change 'ret' from u32 to int
type - this has no runtime impact.

Signed-off-by: Qianfeng Rong <rongqianfeng@vivo.com>
Reviewed-by: Loic Poulain <loic.poulain@oss.qualcomm.com>
Link: https://patch.msgid.link/20250826135021.510767-1-rongqianfeng@vivo.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/wwan/iosm/iosm_ipc_pcie.c