cmd: tlv_eeprom: return after successful read from EEPROM

Commit f6eff35b8c ("cmd: tlv_eeprom: handle -ENODEV error from
read_eeprom function") removed the needed 'return 0' after a successful
read. As a result, the usage message is shown when 'tlv_eeprom read' is
successfully called.

Let's fix it by adding the needed 'return 0'.

Signed-off-by: Martin Schiller <ms@dev.tdt.de>
Reviewed-by: Stefan Roese <sr@denx.de>
This commit is contained in:
Martin Schiller
2025-04-16 08:13:16 +02:00
committed by Stefan Roese
parent e29b2ae3ae
commit 7afcde0939

View File

@@ -476,6 +476,7 @@ int do_tlv_eeprom(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[])
printf("EEPROM data loaded from device to memory.\n");
has_been_read = 1;
return 0;
}
// Subsequent commands require that the EEPROM has already been read.