]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - common/cmd_misc.c
common/cmd_misc.c: fix return code of sleep command
[karo-tx-uboot.git] / common / cmd_misc.c
index 93f9eabd6b547e1cfa30bbdfb5c6872aa015c626..41bb860a0f9ab89dad459be808a989dbbbcd96fc 100644 (file)
@@ -23,12 +23,12 @@ static int do_sleep(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
 
        while (get_timer(start) < delay) {
                if (ctrlc())
-                       return (-1);
+                       return CMD_RET_FAILURE;
 
                udelay(100);
        }
 
-       return 0;
+       return CMD_RET_SUCCESS;
 }
 
 U_BOOT_CMD(