]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - common/cmd_fdc.c
cmd_usage(): simplify return code handling
[karo-tx-uboot.git] / common / cmd_fdc.c
index 486d5d4844790e3dbfefaf1a450d1c320bd48f39..831a07f2c188b276c3c9e8a589c7814b7da0d2c9 100644 (file)
@@ -741,8 +741,7 @@ int do_fdcboot (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
                boot_drive=simple_strtoul(argv[2], NULL, 10);
                break;
        default:
-               cmd_usage(cmdtp);
-               return 1;
+               return cmd_usage(cmdtp);
        }
        /* setup FDC and scan for drives  */
        if(fdc_setup(boot_drive,pCMD,pFG)==FALSE) {