summaryrefslogtreecommitdiff
path: root/cmd/exit.c
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2021-04-13 09:50:45 -0400
committerTom Rini <trini@konsulko.com>2021-04-13 09:50:45 -0400
commita94ab561e2f49a80d8579930e840b810ab1a1330 (patch)
tree77913e7bd9309afa6b2ddc6f3e3e49827da2025c /cmd/exit.c
parent3b676a1662ac6b54d1e97ea40a0c41ee0925ffe3 (diff)
parent8c4e3b79bd0bb76eea16869e9666e19047c0d005 (diff)
Merge branch '2021-04-13-assorted-improvements'
- A large assortment of bug fixes, code cleanups and a few feature enhancements.
Diffstat (limited to 'cmd/exit.c')
-rw-r--r--cmd/exit.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/cmd/exit.c b/cmd/exit.c
index 7bf241ec732..923f0870fbf 100644
--- a/cmd/exit.c
+++ b/cmd/exit.c
@@ -10,13 +10,10 @@
static int do_exit(struct cmd_tbl *cmdtp, int flag, int argc,
char *const argv[])
{
- int r;
-
- r = 0;
if (argc > 1)
- r = simple_strtoul(argv[1], NULL, 10);
+ return simple_strtoul(argv[1], NULL, 10);
- return -r - 2;
+ return 0;
}
U_BOOT_CMD(