]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - cmd/blkcache.c
omap3_logic: Fix Environmental location
[people/ms/u-boot.git] / cmd / blkcache.c
index 9a619e2199cec767aca7623e83c1727148db2965..d7afe3eff8aa5e87243151e85aa2ebc76e98672b 100644 (file)
@@ -16,11 +16,11 @@ static int blkc_show(cmd_tbl_t *cmdtp, int flag,
        struct block_cache_stats stats;
        blkcache_stats(&stats);
 
-       printf("    hits: %u\n"
-              "    misses: %u\n"
-              "    entries: %u\n"
-              "    max blocks/entry: %u\n"
-              "    max cache entries: %u\n",
+       printf("hits: %u\n"
+              "misses: %u\n"
+              "entries: %u\n"
+              "max blocks/entry: %u\n"
+              "max cache entries: %u\n",
               stats.hits, stats.misses, stats.entries,
               stats.max_blocks_per_entry, stats.max_entries);
        return 0;
@@ -73,12 +73,10 @@ static int do_blkcache(cmd_tbl_t *cmdtp, int flag,
 
        c = find_cmd_tbl(argv[0], &cmd_blkc_sub[0], ARRAY_SIZE(cmd_blkc_sub));
 
-       if (c)
-               return c->cmd(cmdtp, flag, argc, argv);
-       else
+       if (!c)
                return CMD_RET_USAGE;
 
-       return 0;
+       return c->cmd(cmdtp, flag, argc, argv);
 }
 
 U_BOOT_CMD(