diff options
author | Heinrich Schuchardt <heinrich.schuchardt@canonical.com> | 2023-01-27 22:49:10 +0100 |
---|---|---|
committer | Stefan Roese <sr@denx.de> | 2023-02-13 10:14:50 +0100 |
commit | 93a80c15151720f08cdbda5287a00c8b576e765f (patch) | |
tree | 5594ef836bb1804693fad5dab64bf89fe0b2b3c9 /lib/tpm_api.c | |
parent | a5e490f14e904fd240ccec5d364509b36a3150f9 (diff) |
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>
Diffstat (limited to 'lib/tpm_api.c')
0 files changed, 0 insertions, 0 deletions