]> git.dujemihanovic.xyz Git - u-boot.git/commit
cmd: return code when tlv_eeprom incorrectly called
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Fri, 27 Jan 2023 21:49:10 +0000 (22:49 +0100)
committerStefan Roese <sr@denx.de>
Mon, 13 Feb 2023 09:14:50 +0000 (10:14 +0100)
commit93a80c15151720f08cdbda5287a00c8b576e765f
tree5594ef836bb1804693fad5dab64bf89fe0b2b3c9
parenta5e490f14e904fd240ccec5d364509b36a3150f9
cmd: return code when tlv_eeprom incorrectly called

A command called with incorrect parameters should set $? to 1 (false).
Instead of calling cmd_usage(cmdtp) and then returning 0 just return
CMD_RET_FAILURE.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Acked-by: Baruch Siach <baruch@tkos.co.il>
Reviewed-by: Stefan Roese <sr@denx.de>
cmd/tlv_eeprom.c