]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - common/cmd_setexpr.c
Convert cmd_usage() calls in common to use a return value
[people/ms/u-boot.git] / common / cmd_setexpr.c
index 1ff12329bccb78f2b58df1c60559bfd9b4fc5b30..1b3edb7b02e4f9aa38b8334833f2be0e32fe2d63 100644 (file)
@@ -58,7 +58,7 @@ int do_setexpr(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
 
        /* Validate arguments */
        if ((argc != 5) || (strlen(argv[3]) != 1))
-               return cmd_usage(cmdtp);
+               return CMD_RET_USAGE;
 
        w = cmd_get_data_size(argv[0], 4);