]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - common/cmd_df.c
cmd_bdinfo: simplify local static funcs a bit
[karo-tx-uboot.git] / common / cmd_df.c
index d64f9009d7332b745a20a0d4978c774d58b88eba..9a3c84c38cab6bcfd838b03a4b0e40deb17beb63 100644 (file)
@@ -6,7 +6,7 @@
 #include <common.h>
 #include <df.h>
 
-static int do_df(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
+static int do_df(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
 {
        const char *cmd;
 
@@ -27,11 +27,10 @@ static int do_df(cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
        }
 
 usage:
-       cmd_usage(cmdtp);
-       return 1;
+       return cmd_usage(cmdtp);
 }
 
 U_BOOT_CMD(
        sf,     2,      1,      do_serial_flash,
        "Serial flash sub-system",
-       "probe [bus:]cs         - init flash device on given SPI bus and CS\n")
+       "probe [bus:]cs         - init flash device on given SPI bus and CS")