]> git.ipfire.org Git - people/ms/u-boot.git/blobdiff - board/barco/barco.c
cmd_usage(): simplify return code handling
[people/ms/u-boot.git] / board / barco / barco.c
index e3abca4cffd11fae0ac156af59eb9ddc8d0ef672..6ce3480782b41d2eb0973f6f6aa4238608464fb4 100644 (file)
@@ -288,14 +288,8 @@ void barcobcd_boot (void)
        do_bootm (NULL,0,2,bootm_args);
 }
 
-int barcobcd_boot_image (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
+int barcobcd_boot_image (cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
 {
-#if 0
-       if (argc > 1) {
-               cmd_usage(cmdtp);
-               return 1;
-       }
-#endif
        barcobcd_boot ();
 
        return 0;
@@ -306,20 +300,20 @@ int barcobcd_boot_image (cmd_tbl_t *cmdtp, int flag, int argc, char *argv[])
 
 U_BOOT_CMD (
                try_working, 1, 1, barcobcd_boot_image,
-               " try_working - check flash value and boot the appropriate image\n",
-               "\n"
+               "check flash value and boot the appropriate image",
+               ""
          );
 
 U_BOOT_CMD (
                boot_working, 1, 1, barcobcd_boot_image,
-               " boot_working - check flash value and boot the appropriate image\n",
-               "\n"
+               "check flash value and boot the appropriate image",
+               ""
          );
 
 U_BOOT_CMD (
                boot_default, 1, 1, barcobcd_boot_image,
-               " boot_default - check flash value and boot the appropriate image\n",
-               "\n"
+               "check flash value and boot the appropriate image",
+               ""
          );
 /*
  * We are not using serial communication, so just provide empty functions
@@ -340,10 +334,6 @@ void serial_puts (const char *c)
 {
        return;
 }
-void serial_addr (unsigned int i)
-{
-       return;
-}
 int serial_getc (void)
 {
        return 0;