]> git.dujemihanovic.xyz Git - u-boot.git/commit
cmd: misc: Fix return value for the sleep command
authorMarek Szyprowski <m.szyprowski@samsung.com>
Fri, 22 Jan 2021 11:27:31 +0000 (12:27 +0100)
committerTom Rini <trini@konsulko.com>
Wed, 27 Jan 2021 22:07:48 +0000 (17:07 -0500)
commit54f884bb0b1ebc16946890bb8349fe0ca2455bb2
treeeaf9b03553cbea1907d578a86799aafaf4887504
parente89ef172f88118ce036eb46d660f857c9209b194
cmd: misc: Fix return value for the sleep command

If sleeping has been interrupted, return CMD_RET_FAILURE instead of -1
(CMD_RET_USAGE).

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Jaehoon Chung <jh80.chung@samsung.com>
cmd/sleep.c