mirror-linux/drivers/net/ethernet/intel/ixgbevf
Aleksandr Loktionov a460f96709 ixgbevf: fix proper type for error code in ixgbevf_resume()
The variable 'err' in ixgbevf_resume() is used to store the return value
of different functions, which return an int. Currently, 'err' is
declared as u32, which is semantically incorrect and misleading.

In the Linux kernel, u32 is typically reserved for fixed-width data
used in hardware interfaces or protocol structures. Using it for a
generic error code may confuse reviewers or developers into thinking
the value is hardware-related or size-constrained.

Replace u32 with int to reflect the actual usage and improve code
clarity and semantic correctness.

No functional change.

Signed-off-by: Aleksandr Loktionov <aleksandr.loktionov@intel.com>
Reviewed-by: Jedrzej Jagielski <jedrzej.jagielski@intel.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
2025-09-19 08:42:08 -07:00
..
Makefile net: intel: Use *-y instead of *-objs in Makefile 2024-06-10 19:52:44 -07:00
defines.h ixgbevf: Add support for Intel(R) E610 device 2024-12-20 10:14:05 -08:00
ethtool.c eth: intel: use vmalloc_array() to simplify code 2025-08-18 17:49:51 -07:00
ipsec.c xfrm: Add explicit dev to .xdo_dev_state_{add,delete,free} 2025-04-16 11:01:41 +02:00
ipsec.h ixgbe: propagate XFRM offload state direction instead of flags 2022-05-06 08:32:52 +02:00
ixgbevf.h ixgbevf: remove unused fields from struct ixgbevf_adapter 2025-07-18 09:02:28 -07:00
ixgbevf_main.c ixgbevf: fix proper type for error code in ixgbevf_resume() 2025-09-19 08:42:08 -07:00
mbx.c ixgbevf: Remove unused ixgbevf_hv_mbx_ops 2025-01-07 17:43:47 -08:00
mbx.h ixgbevf: add disable link state 2022-03-08 07:41:18 -08:00
regs.h
vf.c net: Fix typos 2025-07-25 10:29:07 -07:00
vf.h ixgbevf: Add support for Intel(R) E610 device 2024-12-20 10:14:05 -08:00