diff options
author | Tom Rini <trini@konsulko.com> | 2023-02-13 09:39:15 -0500 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2023-02-13 09:39:15 -0500 |
commit | be9399b399f39c2cae49062ff2dacd1d05bb89c8 (patch) | |
tree | d11abe4109d2ee3e6a0f2703b95a1876d3610d24 /cmd/tlv_eeprom.c | |
parent | 06fe737d1d5a631c8d62e6ca27db2c7d263f5283 (diff) | |
parent | dd15284b749e41a3db94883bde9b96601491ec10 (diff) |
Merge https://source.denx.de/u-boot/custodians/u-boot-marvell
- mvebu: Support for 2 new Armada 385 boards (Tony)
- mvebu: Minor misc board enhancements (Tony)
- kirkwood: Serial driver fixes (Kconfig & dtsi) (Tony)
- cmd: return code when tlv_eeprom incorrectly called (Heinrich)
Diffstat (limited to 'cmd/tlv_eeprom.c')
-rw-r--r-- | cmd/tlv_eeprom.c | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/cmd/tlv_eeprom.c b/cmd/tlv_eeprom.c index bf8d453dc5..4591ff336b 100644 --- a/cmd/tlv_eeprom.c +++ b/cmd/tlv_eeprom.c @@ -479,17 +479,14 @@ int do_tlv_eeprom(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]) show_tlv_devices(); break; default: - cmd_usage(cmdtp); - break; + return CMD_RET_USAGE; } return 0; } // The set command takes one or two args. - if (argc > 4) { - cmd_usage(cmdtp); - return 0; - } + if (argc > 4) + return CMD_RET_USAGE; // Set command. If the TLV exists in the EEPROM, delete it. Then if // data was supplied for this TLV add the TLV with the new contents at @@ -512,7 +509,7 @@ int do_tlv_eeprom(struct cmd_tbl *cmdtp, int flag, int argc, char *const argv[]) current_dev = devnum; has_been_read = 0; } else { - cmd_usage(cmdtp); + return CMD_RET_USAGE; } return 0; |