Commit 9e981bb
Jakub Ramaseuski
ionic: use int type for err in ionic_get_module_eeprom_by_page
JIRA: https://issues.redhat.com/browse/RHEL-121486
commit d586676
Author: Alok Tiwari <alok.a.tiwari@oracle.com>
Date: Fri Sep 12 07:14:24 2025 -0700
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>
Signed-off-by: Jakub Ramaseuski <jramaseu@redhat.com>1 parent dc30f49 commit 9e981bb
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
978 | 978 | | |
979 | 979 | | |
980 | 980 | | |
981 | | - | |
| 981 | + | |
982 | 982 | | |
983 | 983 | | |
984 | 984 | | |
| |||
0 commit comments