include/ata.h: remove invalid links
[oweals/u-boot.git] / cmd / blkcache.c
index 9a619e2199cec767aca7623e83c1727148db2965..2cc65a9ee73afd7803b246b69e9a736713eebedd 100644 (file)
@@ -1,9 +1,8 @@
+// SPDX-License-Identifier: GPL-2.0+
 /*
  * Copyright (C) Nelson Integration, LLC 2016
  * Author: Eric Nelson<eric@nelint.com>
  *
- * SPDX-License-Identifier:    GPL-2.0+
- *
  */
 #include <config.h>
 #include <common.h>
@@ -16,11 +15,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 +72,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(