summaryrefslogtreecommitdiff
path: root/lib/efi_loader/efi_variable.c
diff options
context:
space:
mode:
authorConor Dooley <conor.dooley@microchip.com>2024-05-15 16:04:30 +0100
committerLeo Yu-Chi Liang <ycliang@andestech.com>2024-05-30 16:00:52 +0800
commitd4573c05cbea34f8d7c3c2d5e49b7b057b895882 (patch)
tree127b2858abafd8549b9dd677ae8204b310473e35 /lib/efi_loader/efi_variable.c
parent46ff00bea5dd2dd247d5e2fdadbf5dcf8653cd9a (diff)
board: microchip: icicle: correct type for node offset
Node offsets returned by libfdt can contain negative error numbers, so the variable type should be "int". As things stand, if the ethernet nodes are not found in the early init callback, the if (node < 0) tests pass and the code errors out while trying to set the local-mac-address for a non-existent node. Fixes: 64413e1b7c ("riscv: Add Microchip MPFS Icicle Kit support") Signed-off-by: Conor Dooley <conor.dooley@microchip.com> Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
Diffstat (limited to 'lib/efi_loader/efi_variable.c')
0 files changed, 0 insertions, 0 deletions