9
0
Fork 0

commands: remove maxargs

No need to check for maximum argument counts. The commands are
safe to be called with more arguments, so lets safe some bytes.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Sascha Hauer 2009-10-19 16:16:54 +02:00
parent f4ca85a2a3
commit 420a3173f0
63 changed files with 1 additions and 83 deletions

View File

@ -187,7 +187,6 @@ static const __maybe_unused char cmd_icache_help[] =
"Usage: icache [0|1]\n";
U_BOOT_CMD_START(icache)
.maxargs = CONFIG_MAXARGS,
.cmd = do_icache,
.usage = "show/change icache status",
U_BOOT_CMD_HELP(cmd_icache_help)

View File

@ -130,7 +130,6 @@ static int do_cpuinfo(cmd_tbl_t *cmdtp, int argc, char *argv[])
}
U_BOOT_CMD_START(cpuinfo)
.maxargs = CONFIG_MAXARGS,
.cmd = do_cpuinfo,
.usage = "Show info about CPU",
U_BOOT_CMD_END

View File

@ -301,7 +301,6 @@ static const __maybe_unused char cmd_bootz_help[] =
"Boot a Linux zImage\n";
U_BOOT_CMD_START(bootz)
.maxargs = 2,
.cmd = do_bootz,
.usage = "bootz - start a zImage",
U_BOOT_CMD_HELP(cmd_bootz_help)
@ -336,7 +335,6 @@ static const __maybe_unused char cmd_bootu_help[] =
"Usage: bootu <address>\n";
U_BOOT_CMD_START(bootu)
.maxargs = 2,
.cmd = do_bootu,
.usage = "bootu - start a raw linux image",
U_BOOT_CMD_HELP(cmd_bootu_help)

View File

@ -47,7 +47,6 @@ static __maybe_unused char cmd_clko_help[] =
" for disabling clock output\n";
U_BOOT_CMD_START(clko)
.maxargs = CONFIG_MAXARGS,
.cmd = do_clko,
.usage = "Adjust CLKO setting",
U_BOOT_CMD_HELP(cmd_clko_help)

View File

@ -77,7 +77,6 @@ static int do_clocks (cmd_tbl_t *cmdtp, int argc, char *argv[])
}
U_BOOT_CMD_START(dump_clocks)
.maxargs = CONFIG_MAXARGS,
.cmd = do_clocks,
.usage = "show clock frequencies",
U_BOOT_CMD_END

View File

@ -144,7 +144,6 @@ void reset_cpu(ulong addr)
U_BOOT_CMD_START(loadxc)
.maxargs = 2,
.cmd = do_loadxc,
.usage = "load xmac/xpec engine with ethernet firmware",
U_BOOT_CMD_END

View File

@ -49,7 +49,6 @@ static const __maybe_unused char cmd_alternate_help[] =
"\n";
U_BOOT_CMD_START(alternate)
.maxargs = CONFIG_MAXARGS,
.cmd = do_alternate,
.usage = "count zero bits in a file",
U_BOOT_CMD_HELP(cmd_alternate_help)

View File

@ -283,7 +283,6 @@ static const __maybe_unused char cmd_cpufreq_help[] =
"Set CPU frequency to <freq> MHz\n";
U_BOOT_CMD_START(cpufreq)
.maxargs = CONFIG_MAXARGS,
.cmd = do_cpufreq,
.usage = "adjust CPU frequency",
U_BOOT_CMD_HELP(cmd_cpufreq_help)

View File

@ -202,7 +202,6 @@ static const __maybe_unused char cmd_bmp_help[] =
" -o render offscreen\n";
U_BOOT_CMD_START(bmp)
.maxargs = CONFIG_MAXARGS,
.cmd = do_bmp,
.usage = "show a bmp image",
U_BOOT_CMD_HELP(cmd_bmp_help)

View File

@ -458,7 +458,6 @@ static const __maybe_unused char cmd_bootm_help[] =
U_BOOT_CMD_START(bootm)
.maxargs = CONFIG_MAXARGS,
.cmd = do_bootm,
.usage = "boot application image",
U_BOOT_CMD_HELP(cmd_bootm_help)
@ -524,7 +523,7 @@ static int image_info (ulong addr)
}
U_BOOT_CMD(
iminfo, CONFIG_MAXARGS, 1, do_iminfo,
iminfo, 1, do_iminfo,
"iminfo - print header information for application image\n",
"addr [addr ...]\n"
" - print header information for application image starting at\n"

View File

@ -91,7 +91,6 @@ static const __maybe_unused char cmd_cat_help[] =
"and \\n and \\t are printed, but this should be optional\n";
U_BOOT_CMD_START(cat)
.maxargs = CONFIG_MAXARGS,
.cmd = do_cat,
.usage = "concatenate file(s)",
U_BOOT_CMD_HELP(cmd_cat_help)

View File

@ -52,7 +52,6 @@ static const __maybe_unused char cmd_cd_help[] =
"change to directory. If called without argument, change to /\n";
U_BOOT_CMD_START(cd)
.maxargs = 2,
.cmd = do_cd,
.usage = "change working directory",
U_BOOT_CMD_HELP(cmd_cd_help)

View File

@ -32,7 +32,6 @@ static int do_clear (cmd_tbl_t *cmdtp, int argc, char *argv[])
}
U_BOOT_CMD_START(clear)
.maxargs = 1,
.cmd = do_clear,
.usage = "clear screen",
U_BOOT_CMD_END

View File

@ -85,7 +85,6 @@ static const __maybe_unused char cmd_cp_help[] =
"This command is file based only. See memcpy for memory copy\n";
U_BOOT_CMD_START(cp)
.maxargs = CONFIG_MAXARGS,
.cmd = do_cp,
.usage = "copy files",
U_BOOT_CMD_HELP(cmd_cp_help)

View File

@ -115,7 +115,6 @@ static const __maybe_unused char cmd_crc_help[] =
" -v <crc> Verfify\n";
U_BOOT_CMD_START(crc32)
.maxargs = CONFIG_MAXARGS,
.cmd = do_crc,
.usage = "crc32 checksum calculation",
U_BOOT_CMD_HELP(cmd_crc_help)

View File

@ -174,7 +174,6 @@ static const __maybe_unused char cmd_dfu_help[] =
"where s is for save mode and r for read back of firmware\n";
U_BOOT_CMD_START(dfu)
.maxargs = CONFIG_MAXARGS,
.cmd = do_dfu,
.usage = "Device firmware update",
U_BOOT_CMD_HELP(cmd_dfu_help)

View File

@ -97,7 +97,6 @@ no_optarg_out:
}
U_BOOT_CMD_START(echo)
.maxargs = CONFIG_MAXARGS,
.cmd = do_echo,
.usage = "echo args to console",
U_BOOT_CMD_END

View File

@ -562,7 +562,6 @@ static const __maybe_unused char cmd_edit_help[] =
static const __maybe_unused char cmd_edit_usage[] = "edit a file";
U_BOOT_CMD_START(edit)
.maxargs = 2,
.cmd = do_edit,
.aliases = edit_aliases,
.usage = cmd_edit_usage,

View File

@ -54,7 +54,6 @@ out:
}
U_BOOT_CMD_START(exec)
.maxargs = CONFIG_MAXARGS,
.cmd = do_exec,
.usage = "execute a script",
U_BOOT_CMD_END

View File

@ -56,7 +56,6 @@ static const __maybe_unused char cmd_export_help[] =
"export an environment variable to subsequently executed scripts\n";
U_BOOT_CMD_START(export)
.maxargs = CONFIG_MAXARGS,
.cmd = do_export,
.usage = "export environment variables",
U_BOOT_CMD_HELP(cmd_export_help)

View File

@ -30,7 +30,6 @@ static int do_false (cmd_tbl_t *cmdtp, int argc, char *argv[])
}
U_BOOT_CMD_START(false)
.maxargs = 1,
.cmd = do_false,
.usage = "do nothing, unsuccessfully",
U_BOOT_CMD_END

View File

@ -90,7 +90,6 @@ static const __maybe_unused char cmd_erase_help[] =
"is given\n";
U_BOOT_CMD_START(erase)
.maxargs = CONFIG_MAXARGS,
.cmd = do_flerase,
.usage = "erase FLASH memory",
U_BOOT_CMD_HELP(cmd_erase_help)
@ -168,14 +167,12 @@ static const __maybe_unused char cmd_protect_help[] =
"is given\n";
U_BOOT_CMD_START(protect)
.maxargs = 4,
.cmd = do_protect,
.usage = "enable FLASH write protection",
U_BOOT_CMD_HELP(cmd_protect_help)
U_BOOT_CMD_END
U_BOOT_CMD_START(unprotect)
.maxargs = 4,
.cmd = do_protect,
.usage = "disable FLASH write protection",
U_BOOT_CMD_HELP(cmd_protect_help)

View File

@ -79,7 +79,6 @@ static const __maybe_unused char cmd_go_help[] =
"in which case the file is memmapped and executed\n";
U_BOOT_CMD_START(go)
.maxargs = CONFIG_MAXARGS,
.cmd = do_go,
.usage = "start application at address or file",
U_BOOT_CMD_HELP(cmd_go_help)

View File

@ -62,7 +62,6 @@ static const __maybe_unused char cmd_help_help[] =
static const char *help_aliases[] = { "?", NULL};
U_BOOT_CMD_START(help)
.maxargs = 2,
.cmd = do_help,
.aliases = help_aliases,
.usage = "print online help",

View File

@ -36,7 +36,6 @@ static const __maybe_unused char cmd_insmod_help[] =
"Usage: insmod <module>\n";
U_BOOT_CMD_START(insmod)
.maxargs = 2,
.cmd = do_insmod,
.usage = "insert a module",
U_BOOT_CMD_HELP(cmd_insmod_help)

View File

@ -807,7 +807,6 @@ static const __maybe_unused char cmd_loadb_help[] =
" -c - Create file if it is not present - default disabled";
#ifdef CONFIG_CMD_LOADB
U_BOOT_CMD_START(loadb)
.maxargs = 8,
.cmd = do_load_serial_bin,
.usage = "Load binary file over serial line (kermit mode)",
U_BOOT_CMD_HELP(cmd_loadb_help)
@ -815,7 +814,6 @@ U_BOOT_CMD_END
#endif
#ifdef CONFIG_CMD_LOADY
U_BOOT_CMD_START(loady)
.maxargs = 8,
.cmd = do_load_serial_bin,
.usage = "Load binary file over serial line (ymodem mode)",
U_BOOT_CMD_HELP(cmd_loadb_help)

View File

@ -51,7 +51,6 @@ static const __maybe_unused char cmd_loadenv_help[] =
"Note that envfs can only handle files. Directories are skipped silently.\n";
U_BOOT_CMD_START(loadenv)
.maxargs = 3,
.cmd = do_loadenv,
.usage = "load environment from persistent storage",
U_BOOT_CMD_HELP(cmd_loadenv_help)

View File

@ -200,7 +200,6 @@ static const __maybe_unused char cmd_ls_help[] =
" -R list subdirectories recursively\n";
U_BOOT_CMD_START(ls)
.maxargs = CONFIG_MAXARGS,
.cmd = do_ls,
.usage = "list a file or directory",
U_BOOT_CMD_HELP(cmd_ls_help)

View File

@ -13,7 +13,6 @@ static int do_lsmod (cmd_tbl_t *cmdtp, int argc, char *argv[])
}
U_BOOT_CMD_START(lsmod)
.maxargs = 1,
.cmd = do_lsmod,
.usage = "list modules",
U_BOOT_CMD_END

View File

@ -233,7 +233,6 @@ static const __maybe_unused char cmd_md_help[] =
U_BOOT_CMD_START(md)
.maxargs = CONFIG_MAXARGS,
.cmd = do_mem_md,
.usage = "memory display",
U_BOOT_CMD_HELP(cmd_md_help)
@ -297,7 +296,6 @@ static const __maybe_unused char cmd_mw_help[] =
"see 'help md' for supported options.\n";
U_BOOT_CMD_START(mw)
.maxargs = CONFIG_MAXARGS,
.cmd = do_mem_mw,
.usage = "memory write (fill)",
U_BOOT_CMD_HELP(cmd_mw_help)
@ -407,7 +405,6 @@ static const __maybe_unused char cmd_memcmp_help[] =
"compared\n";
U_BOOT_CMD_START(memcmp)
.maxargs = CONFIG_MAXARGS,
.cmd = do_mem_cmp,
.usage = "memory compare",
U_BOOT_CMD_HELP(cmd_memcmp_help)
@ -504,7 +501,6 @@ static const __maybe_unused char cmd_memcpy_help[] =
"Copy memory at <src> of <count> bytes to <dst>\n";
U_BOOT_CMD_START(memcpy)
.maxargs = CONFIG_MAXARGS,
.cmd = do_mem_cp,
.usage = "memory copy",
U_BOOT_CMD_HELP(cmd_memcpy_help)
@ -570,7 +566,6 @@ static const __maybe_unused char cmd_memset_help[] =
"Fill the first n bytes of area with byte c\n";
U_BOOT_CMD_START(memset)
.maxargs = CONFIG_MAXARGS,
.cmd = do_memset,
.usage = "memory fill",
U_BOOT_CMD_HELP(cmd_memset_help)

View File

@ -31,7 +31,6 @@ static int do_meminfo (cmd_tbl_t *cmdtp, int argc, char *argv[])
}
U_BOOT_CMD_START(meminfo)
.maxargs = 1,
.cmd = do_meminfo,
.usage = "print info about memory usage",
U_BOOT_CMD_END

View File

@ -348,7 +348,6 @@ static const __maybe_unused char cmd_mtest_help[] =
"\nsimple RAM read/write test\n";
U_BOOT_CMD_START(mtest)
.maxargs = 4,
.cmd = do_mem_mtest,
.usage = "simple RAM test",
U_BOOT_CMD_HELP(cmd_mtest_help)

View File

@ -64,7 +64,6 @@ static const __maybe_unused char cmd_mkdir_help[] =
"Create new directories\n";
U_BOOT_CMD_START(mkdir)
.maxargs = CONFIG_MAXARGS,
.cmd = do_mkdir,
.usage = "make directories",
U_BOOT_CMD_HELP(cmd_mkdir_help)

View File

@ -71,7 +71,6 @@ static const __maybe_unused char cmd_mount_help[] =
"root directory.\n";
U_BOOT_CMD_START(mount)
.maxargs = 4,
.cmd = do_mount,
.usage = "mount a filesystem to a device",
U_BOOT_CMD_HELP(cmd_mount_help)

View File

@ -348,7 +348,6 @@ static const __maybe_unused char cmd_nand_help[] =
" -b <ofs> <dev> mark block at offset ofs as bad\n";
U_BOOT_CMD_START(nand)
.maxargs = CONFIG_MAXARGS,
.cmd = do_nand,
.usage = "",
U_BOOT_CMD_HELP(cmd_nand_help)

View File

@ -87,7 +87,6 @@ static const __maybe_unused char cmd_tftp_help[] =
"Load a file via network using BootP/TFTP protocol.\n";
U_BOOT_CMD_START(tftp)
.maxargs = 3,
.cmd = do_tftpb,
.usage = "Load file using tftp protocol",
U_BOOT_CMD_HELP(cmd_tftp_help)
@ -132,7 +131,6 @@ static int do_rarpb (cmd_tbl_t *cmdtp, int argc, char *argv[])
}
U_BOOT_CMD_START(rarpboot)
.maxargs = 3,
.cmd = do_rarpb,
.usage = "boot image via network using rarp/tftp protocol",
U_BOOT_CMD_HELP("[loadAddress] [bootfilename]\n")
@ -150,7 +148,6 @@ static const __maybe_unused char cmd_nfs_help[] =
"Load a file via network using nfs protocol.\n";
U_BOOT_CMD_START(nfs)
.maxargs = 3,
.cmd = do_nfs,
.usage = "boot image via network using nfs protocol",
U_BOOT_CMD_HELP(cmd_nfs_help)
@ -254,7 +251,6 @@ static int do_cdp (cmd_tbl_t *cmdtp, int argc, char *argv[])
}
U_BOOT_CMD_START(cdp)
.maxargs = 1,
.cmd = do_cdp,
.usage = "Perform CDP network configuration",
U_BOOT_CMD_HELP("[loadAddress] [host ip addr:bootfilename]\n")
@ -291,7 +287,6 @@ static const __maybe_unused char cmd_ethact_help[] =
"Usage: ethact [ethx]\n";
U_BOOT_CMD_START(ethact)
.maxargs = 3,
.cmd = do_ethact,
.usage = "set current ethernet device",
U_BOOT_CMD_HELP(cmd_ethact_help)

View File

@ -155,7 +155,6 @@ static const __maybe_unused char cmd_addpart_help[] =
"Note: That this command has to be reworked and will probably change it's API.";
U_BOOT_CMD_START(addpart)
.maxargs = 3,
.cmd = do_addpart,
.usage = "adds a partition table to a device",
U_BOOT_CMD_HELP(cmd_addpart_help)
@ -201,7 +200,6 @@ static const __maybe_unused char cmd_delpart_help[] =
"Delete partitions previously added to a device with addpart.\n";
U_BOOT_CMD_START(delpart)
.maxargs = CONFIG_MAXARGS,
.cmd = do_delpart,
.usage = "delete partition(s)",
U_BOOT_CMD_HELP(cmd_delpart_help)

View File

@ -72,7 +72,6 @@ static const __maybe_unused char cmd_printenv_help[] =
U_BOOT_CMD_START(printenv)
.maxargs = CONFIG_MAXARGS,
.cmd = do_printenv,
.usage = "print environment variables",
U_BOOT_CMD_HELP(cmd_printenv_help)

View File

@ -30,7 +30,6 @@ static int do_pwd (cmd_tbl_t *cmdtp, int argc, char *argv[])
}
U_BOOT_CMD_START(pwd)
.maxargs = 1,
.cmd = do_pwd,
.usage = "print working directory",
U_BOOT_CMD_END

View File

@ -50,7 +50,6 @@ static const __maybe_unused char cmd_readline_help[] =
"readline reads a line of user input into variable VAR.\n";
U_BOOT_CMD_START(readline)
.maxargs = 3,
.cmd = do_readline,
.usage = "prompt for user input",
U_BOOT_CMD_HELP(cmd_readline_help)

View File

@ -30,7 +30,6 @@ static int do_reginfo (cmd_tbl_t *cmdtp, int argc, char *argv[])
}
U_BOOT_CMD_START(reginfo)
.maxargs = 1,
.cmd = do_reginfo,
.usage = "print register information",
U_BOOT_CMD_END

View File

@ -32,7 +32,6 @@ static int cmd_reset (cmd_tbl_t *cmdtp, int argc, char *argv[])
}
U_BOOT_CMD_START(reset)
.maxargs = 1,
.cmd = cmd_reset,
.usage = "Perform RESET of the CPU",
U_BOOT_CMD_END

View File

@ -47,7 +47,6 @@ static const __maybe_unused char cmd_rm_help[] =
"Remove files\n";
U_BOOT_CMD_START(rm)
.maxargs = CONFIG_MAXARGS,
.cmd = do_rm,
.usage = "remove files",
U_BOOT_CMD_HELP(cmd_rm_help)

View File

@ -26,7 +26,6 @@ static const __maybe_unused char cmd_rmdir_help[] =
"Remove directories. The directories have to be empty.\n";
U_BOOT_CMD_START(rmdir)
.maxargs = CONFIG_MAXARGS,
.cmd = do_rmdir,
.usage = "remove directorie(s)",
U_BOOT_CMD_HELP(cmd_rmdir_help)

View File

@ -101,7 +101,6 @@ static const __maybe_unused char cmd_saveenv_help[] =
"Note that envfs can only handle files. Directories are skipped silently.\n";
U_BOOT_CMD_START(saveenv)
.maxargs = 3,
.cmd = do_saveenv,
.usage = "save environment to persistent storage",
U_BOOT_CMD_HELP(cmd_saveenv_help)

View File

@ -46,7 +46,6 @@ static const __maybe_unused char cmd_setenv_help[] =
U_BOOT_CMD_START(setenv)
.maxargs = CONFIG_MAXARGS,
.cmd = do_setenv,
.usage = "set environment variables",
U_BOOT_CMD_HELP(cmd_setenv_help)

View File

@ -44,7 +44,6 @@ static int do_sleep (cmd_tbl_t *cmdtp, int argc, char *argv[])
}
U_BOOT_CMD_START(sleep)
.maxargs = 2,
.cmd = do_sleep,
.usage = "delay execution for n seconds",
U_BOOT_CMD_END

View File

@ -231,7 +231,6 @@ static const __maybe_unused char cmd_test_usage[] = "minimal test like /bin/sh";
U_BOOT_CMD_START(test)
.aliases = test_aliases,
.maxargs = CONFIG_MAXARGS,
.cmd = do_test,
.usage = cmd_test_usage,
U_BOOT_CMD_HELP(cmd_test_help)

View File

@ -103,7 +103,6 @@ static const __maybe_unused char cmd_timeout_help[] =
" -s silent mode\n";
U_BOOT_CMD_START(timeout)
.maxargs = CONFIG_MAXARGS,
.cmd = do_timeout,
.usage = "wait for a specified timeout",
U_BOOT_CMD_HELP(cmd_timeout_help)

View File

@ -30,7 +30,6 @@ static int do_true (cmd_tbl_t *cmdtp, int argc, char *argv[])
}
U_BOOT_CMD_START(true)
.maxargs = 1,
.cmd = do_true,
.usage = "do nothing, successfully",
U_BOOT_CMD_END

View File

@ -43,7 +43,6 @@ static const __maybe_unused char cmd_umount_help[] =
"umount a filesystem mounted on a specific mountpoint\n";
U_BOOT_CMD_START(umount)
.maxargs = 2,
.cmd = do_umount,
.usage = "umount a filesystem",
U_BOOT_CMD_HELP(cmd_umount_help)

View File

@ -32,7 +32,6 @@ static int do_version (cmd_tbl_t *cmdtp, int argc, char *argv[])
}
U_BOOT_CMD_START(version)
.maxargs = 1,
.cmd = do_version,
.usage = "print monitor version",
U_BOOT_CMD_END

View File

@ -56,7 +56,6 @@ static int do_exit (cmd_tbl_t *cmdtp, int argc, char *argv[])
}
U_BOOT_CMD_START(exit)
.maxargs = 2,
.cmd = do_exit,
.usage = "exit script",
U_BOOT_CMD_END
@ -101,11 +100,6 @@ int execute_command(int argc, char **argv)
/* Look up command in command table */
if ((cmdtp = find_cmd(argv[0]))) {
/* found - check max args */
if (argc > cmdtp->maxargs) {
u_boot_cmd_usage(cmdtp);
return -1;
}
/* OK - call function to do the command */
ret = cmdtp->cmd(cmdtp, argc, argv);
if (ret == COMMAND_ERROR_USAGE) {

View File

@ -1594,7 +1594,6 @@ static const __maybe_unused char cmd_sh_help[] =
"Execute a shell script\n";
U_BOOT_CMD_START(sh)
.maxargs = CONFIG_MAXARGS,
.cmd = do_sh,
.usage = "run shell script",
U_BOOT_CMD_HELP(cmd_sh_help)
@ -1622,7 +1621,6 @@ static const __maybe_unused char cmd_source_usage[] =
"execute shell script in current shell environment";
U_BOOT_CMD_START(source)
.maxargs = CONFIG_MAXARGS,
.aliases = source_aliases,
.cmd = do_source,
.usage = cmd_source_usage,

View File

@ -1206,7 +1206,6 @@ static const __maybe_unused char cmd_nand_boot_test_help[] =
"Usage: nand_boot_test <dest> <size> <pagesize> <blocksize>\n";
U_BOOT_CMD_START(nand_boot_test)
.maxargs = CONFIG_MAXARGS,
.cmd = do_nand_boot_test,
.usage = "list a file or directory",
U_BOOT_CMD_HELP(cmd_nand_boot_test_help)

View File

@ -1124,7 +1124,6 @@ static const __maybe_unused char cmd_nand_boot_test_help[] =
"Usage: nand_boot_test <dest> <size> <pagesize> <blocksize in kiB>\n";
U_BOOT_CMD_START(nand_boot_test)
.maxargs = CONFIG_MAXARGS,
.cmd = do_nand_boot_test,
.usage = "load an image from NAND",
U_BOOT_CMD_HELP(cmd_nand_boot_test_help)

View File

@ -505,7 +505,6 @@ static const __maybe_unused char cmd_nand_boot_test_help[] =
"Usage: nand_boot_test <dest> <size> <pagesize>\n";
U_BOOT_CMD_START(nand_boot_test)
.maxargs = CONFIG_MAXARGS,
.cmd = do_nand_boot_test,
.usage = "load an image from NAND",
U_BOOT_CMD_HELP(cmd_nand_boot_test_help)

View File

@ -485,7 +485,6 @@ static int do_mycdev (cmd_tbl_t *cmdtp, int argc, char *argv[])
}
U_BOOT_CMD_START(mycdev)
.maxargs = CONFIG_MAXARGS,
.cmd = do_mycdev,
U_BOOT_CMD_END

View File

@ -490,7 +490,6 @@ static const __maybe_unused char cmd_usb_help[] =
"(re-)detect USB devices\n";
U_BOOT_CMD_START(usb)
.maxargs = CONFIG_MAXARGS,
.cmd = do_usb,
.usage = "(re-)detect USB devices",
U_BOOT_CMD_HELP(cmd_usb_help)

View File

@ -46,7 +46,6 @@ extern struct list_head command_list;
struct cmd_tbl_s {
const char *name; /* Command Name */
const char **aliases;
int maxargs; /* maximum number of arguments */
/* Implementation function */
int (*cmd)(struct cmd_tbl_s *, int, char *[]);
const char *usage; /* Usage message (short) */

View File

@ -335,7 +335,6 @@ static const __maybe_unused char cmd_devinfo_help[] =
"information about this device and its parameters.\n";
U_BOOT_CMD_START(devinfo)
.maxargs = 2,
.cmd = do_devinfo,
.usage = "display info about devices and drivers",
U_BOOT_CMD_HELP(cmd_devinfo_help)

View File

@ -609,7 +609,6 @@ static int do_dhcp (cmd_tbl_t *cmdtp, int argc, char *argv[])
}
U_BOOT_CMD_START(dhcp)
.maxargs = 1,
.cmd = do_dhcp,
.usage = "invoke dhcp client to obtain ip/boot params",
U_BOOT_CMD_END

View File

@ -104,7 +104,6 @@ int do_ping (cmd_tbl_t *cmdtp, int argc, char *argv[])
}
U_BOOT_CMD_START(ping)
.maxargs = 2,
.cmd = do_ping,
.usage = "ping <destination>",
U_BOOT_CMD_END