]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - arch/powerpc/cpu/mpc512x/diu.c
cmd_usage(): simplify return code handling
[karo-tx-uboot.git] / arch / powerpc / cpu / mpc512x / diu.c
index f638c003722b0a69162461e02edab972c6d0ec6a..9ef5609f31f0faeb7a71d49f1e864d435eb3b482 100644 (file)
@@ -111,10 +111,8 @@ int mpc5121diu_init_show_bmp(cmd_tbl_t *cmdtp,
 {
        unsigned int addr;
 
-       if (argc < 2) {
-               cmd_usage(cmdtp);
-               return 1;
-       }
+       if (argc < 2)
+               return cmd_usage(cmdtp);
 
        if (!strncmp(argv[1], "init", 4)) {
 #if defined(CONFIG_VIDEO) || defined(CONFIG_CFB_CONSOLE)