From: Martin Schiller Date: Wed, 16 Apr 2025 06:13:16 +0000 (+0200) Subject: cmd: tlv_eeprom: return after successful read from EEPROM X-Git-Tag: v2025.07-rc3~14^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7afcde09399297765945d57be4535291b2ac9549;p=pandora-u-boot.git cmd: tlv_eeprom: return after successful read from EEPROM Commit f6eff35b8c19 ("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 Reviewed-by: Stefan Roese --- diff --git a/cmd/tlv_eeprom.c b/cmd/tlv_eeprom.c index 0aec7521770..d7c229e5441 100644 --- a/cmd/tlv_eeprom.c +++ b/cmd/tlv_eeprom.c @@ -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.