]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - common/cmd_date.c
Convert cmd_usage() calls in common to use a return value
[people/ms/u-boot.git] / common / cmd_date.c
index f0fa02ae22fcb90f17136c35349f721b7f513b4e..335bc05f2abea816afc4562813c2ff58e0dc03a2 100644 (file)
@@ -93,8 +93,7 @@ int do_date (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
 
                break;
        default:
-               cmd_usage(cmdtp);
-               rcode = 1;
+               rcode = CMD_RET_USAGE;
        }
 
        /* switch back to original I2C bus */