summaryrefslogtreecommitdiff
path: root/rust/helpers/build_bug.c
diff options
context:
space:
mode:
authorAlok Tiwari <alok.a.tiwari@oracle.com>2025-09-12 07:14:24 -0700
committerJakub Kicinski <kuba@kernel.org>2025-09-14 13:19:21 -0700
commitd586676a2714176bed06cf70467c4e08ac2d4681 (patch)
tree34e46696d5b503dfff19167037b6b3369a05348f /rust/helpers/build_bug.c
parentc20302dd42ac2aa3cbb3e8099a8a39b90194d189 (diff)
ionic: use int type for err in ionic_get_module_eeprom_by_page
The variable 'err' is declared as u32, but it is used to store negative error codes such as -EINVAL. Changing the type of 'err' to int ensures proper representation of negative error codes and aligns with standard kernel error handling conventions. Also, there is no need to initialize 'err' since it is always set before being used. Signed-off-by: Alok Tiwari <alok.a.tiwari@oracle.com> Reviewed-by: Shannon Nelson <sln@onemain.com> Reviewed-by: Brett Creeley <brett.creeley@amd.com> Link: https://patch.msgid.link/20250912141426.3922545-1-alok.a.tiwari@oracle.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'rust/helpers/build_bug.c')
0 files changed, 0 insertions, 0 deletions