Skip to content
Commit 93a80c15 authored by Heinrich Schuchardt's avatar Heinrich Schuchardt Committed by Stefan Roese
Browse files

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: default avatarHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Acked-by: default avatarBaruch Siach <baruch@tkos.co.il>
Reviewed-by: default avatarStefan Roese <sr@denx.de>
parent a5e490f1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment