projects
/
platform
/
kernel
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e89ef17
)
cmd: misc: Fix return value for the sleep command
author
Marek Szyprowski
<m.szyprowski@samsung.com>
Fri, 22 Jan 2021 11:27:31 +0000
(12:27 +0100)
committer
Tom Rini
<trini@konsulko.com>
Wed, 27 Jan 2021 22:07:48 +0000
(17:07 -0500)
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
patch
|
blob
|
history
diff --git
a/cmd/sleep.c
b/cmd/sleep.c
index
f0c78a8
..
1fff400
100644
(file)
--- a/
cmd/sleep.c
+++ b/
cmd/sleep.c
@@
-40,7
+40,7
@@
static int do_sleep(struct cmd_tbl *cmdtp, int flag, int argc,
while (get_timer(start) < delay) {
if (ctrlc())
- return
(-1)
;
+ return
CMD_RET_FAILURE
;
udelay(100);
}