diff --git a/arch/arm/cpu/cpu.c b/arch/arm/cpu/cpu.c index 265a2b0..180f458 100644 --- a/arch/arm/cpu/cpu.c +++ b/arch/arm/cpu/cpu.c @@ -187,7 +187,6 @@ "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) diff --git a/arch/arm/cpu/cpuinfo.c b/arch/arm/cpu/cpuinfo.c index 632cffa..b990cad 100644 --- a/arch/arm/cpu/cpuinfo.c +++ b/arch/arm/cpu/cpuinfo.c @@ -130,7 +130,6 @@ } U_BOOT_CMD_START(cpuinfo) - .maxargs = CONFIG_MAXARGS, .cmd = do_cpuinfo, .usage = "Show info about CPU", U_BOOT_CMD_END diff --git a/arch/arm/lib/armlinux.c b/arch/arm/lib/armlinux.c index 65e14f0..04dcf49 100644 --- a/arch/arm/lib/armlinux.c +++ b/arch/arm/lib/armlinux.c @@ -301,7 +301,6 @@ "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 @@ "Usage: bootu
\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) diff --git a/arch/arm/mach-imx/clko.c b/arch/arm/mach-imx/clko.c index bdedd66..11edfb5 100644 --- a/arch/arm/mach-imx/clko.c +++ b/arch/arm/mach-imx/clko.c @@ -47,7 +47,6 @@ " 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) diff --git a/arch/arm/mach-imx/speed.c b/arch/arm/mach-imx/speed.c index 74b7e30..e9b5ca0 100644 --- a/arch/arm/mach-imx/speed.c +++ b/arch/arm/mach-imx/speed.c @@ -77,7 +77,6 @@ } U_BOOT_CMD_START(dump_clocks) - .maxargs = CONFIG_MAXARGS, .cmd = do_clocks, .usage = "show clock frequencies", U_BOOT_CMD_END diff --git a/arch/arm/mach-netx/generic.c b/arch/arm/mach-netx/generic.c index e2ad29c..985f3b8 100644 --- a/arch/arm/mach-netx/generic.c +++ b/arch/arm/mach-netx/generic.c @@ -144,7 +144,6 @@ U_BOOT_CMD_START(loadxc) - .maxargs = 2, .cmd = do_loadxc, .usage = "load xmac/xpec engine with ethernet firmware", U_BOOT_CMD_END diff --git a/board/ipe337/cmd_alternate.c b/board/ipe337/cmd_alternate.c index e563ab8..78ed77c 100644 --- a/board/ipe337/cmd_alternate.c +++ b/board/ipe337/cmd_alternate.c @@ -49,7 +49,6 @@ "\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) diff --git a/board/pcm043/pcm043.c b/board/pcm043/pcm043.c index 2099533..166f2fa 100644 --- a/board/pcm043/pcm043.c +++ b/board/pcm043/pcm043.c @@ -283,7 +283,6 @@ "Set CPU frequency to MHz\n"; U_BOOT_CMD_START(cpufreq) - .maxargs = CONFIG_MAXARGS, .cmd = do_cpufreq, .usage = "adjust CPU frequency", U_BOOT_CMD_HELP(cmd_cpufreq_help) diff --git a/commands/bmp.c b/commands/bmp.c index 22d7275..181639a 100644 --- a/commands/bmp.c +++ b/commands/bmp.c @@ -202,7 +202,6 @@ " -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) diff --git a/commands/bootm.c b/commands/bootm.c index 9e16e06..853f70a 100644 --- a/commands/bootm.c +++ b/commands/bootm.c @@ -458,7 +458,6 @@ 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 @@ } 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" diff --git a/commands/cat.c b/commands/cat.c index da34996..59b93a9 100644 --- a/commands/cat.c +++ b/commands/cat.c @@ -91,7 +91,6 @@ "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) diff --git a/commands/cd.c b/commands/cd.c index 57141e3..973ef78 100644 --- a/commands/cd.c +++ b/commands/cd.c @@ -52,7 +52,6 @@ "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) diff --git a/commands/clear.c b/commands/clear.c index dac15c8..2d51574 100644 --- a/commands/clear.c +++ b/commands/clear.c @@ -32,7 +32,6 @@ } U_BOOT_CMD_START(clear) - .maxargs = 1, .cmd = do_clear, .usage = "clear screen", U_BOOT_CMD_END diff --git a/commands/cp.c b/commands/cp.c index 0fe3242..d0cb570 100644 --- a/commands/cp.c +++ b/commands/cp.c @@ -85,7 +85,6 @@ "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) diff --git a/commands/crc.c b/commands/crc.c index d828bc9..6983c9d 100644 --- a/commands/crc.c +++ b/commands/crc.c @@ -115,7 +115,6 @@ " -v Verfify\n"; U_BOOT_CMD_START(crc32) - .maxargs = CONFIG_MAXARGS, .cmd = do_crc, .usage = "crc32 checksum calculation", U_BOOT_CMD_HELP(cmd_crc_help) diff --git a/commands/dfu.c b/commands/dfu.c index fae7702..c8a598c 100644 --- a/commands/dfu.c +++ b/commands/dfu.c @@ -174,7 +174,6 @@ "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) diff --git a/commands/echo.c b/commands/echo.c index b61930c..44206ad 100644 --- a/commands/echo.c +++ b/commands/echo.c @@ -97,7 +97,6 @@ } U_BOOT_CMD_START(echo) - .maxargs = CONFIG_MAXARGS, .cmd = do_echo, .usage = "echo args to console", U_BOOT_CMD_END diff --git a/commands/edit.c b/commands/edit.c index 66f90e9..8d3df6f 100644 --- a/commands/edit.c +++ b/commands/edit.c @@ -562,7 +562,6 @@ 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, diff --git a/commands/exec.c b/commands/exec.c index 4a232b6..aeb769d 100644 --- a/commands/exec.c +++ b/commands/exec.c @@ -54,7 +54,6 @@ } U_BOOT_CMD_START(exec) - .maxargs = CONFIG_MAXARGS, .cmd = do_exec, .usage = "execute a script", U_BOOT_CMD_END diff --git a/commands/export.c b/commands/export.c index 55d6155..750a83f 100644 --- a/commands/export.c +++ b/commands/export.c @@ -56,7 +56,6 @@ "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) diff --git a/commands/false.c b/commands/false.c index 67651c4..94878a6 100644 --- a/commands/false.c +++ b/commands/false.c @@ -30,7 +30,6 @@ } U_BOOT_CMD_START(false) - .maxargs = 1, .cmd = do_false, .usage = "do nothing, unsuccessfully", U_BOOT_CMD_END diff --git a/commands/flash.c b/commands/flash.c index 35c34da..d630783 100644 --- a/commands/flash.c +++ b/commands/flash.c @@ -90,7 +90,6 @@ "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 @@ "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) diff --git a/commands/go.c b/commands/go.c index 82a20d7..283b6d4 100644 --- a/commands/go.c +++ b/commands/go.c @@ -79,7 +79,6 @@ "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) diff --git a/commands/help.c b/commands/help.c index ddb2aa8..1a8bc9b 100644 --- a/commands/help.c +++ b/commands/help.c @@ -62,7 +62,6 @@ static const char *help_aliases[] = { "?", NULL}; U_BOOT_CMD_START(help) - .maxargs = 2, .cmd = do_help, .aliases = help_aliases, .usage = "print online help", diff --git a/commands/insmod.c b/commands/insmod.c index 0b7c91f..82858bf 100644 --- a/commands/insmod.c +++ b/commands/insmod.c @@ -36,7 +36,6 @@ "Usage: insmod \n"; U_BOOT_CMD_START(insmod) - .maxargs = 2, .cmd = do_insmod, .usage = "insert a module", U_BOOT_CMD_HELP(cmd_insmod_help) diff --git a/commands/loadb.c b/commands/loadb.c index 1fdf944..a942d36 100644 --- a/commands/loadb.c +++ b/commands/loadb.c @@ -807,7 +807,6 @@ " -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 @@ #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) diff --git a/commands/loadenv.c b/commands/loadenv.c index ee76699..1250aa7 100644 --- a/commands/loadenv.c +++ b/commands/loadenv.c @@ -51,7 +51,6 @@ "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) diff --git a/commands/ls.c b/commands/ls.c index 2522546..6e085ae 100644 --- a/commands/ls.c +++ b/commands/ls.c @@ -200,7 +200,6 @@ " -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) diff --git a/commands/lsmod.c b/commands/lsmod.c index 9909724..ffca840 100644 --- a/commands/lsmod.c +++ b/commands/lsmod.c @@ -13,7 +13,6 @@ } U_BOOT_CMD_START(lsmod) - .maxargs = 1, .cmd = do_lsmod, .usage = "list modules", U_BOOT_CMD_END diff --git a/commands/mem.c b/commands/mem.c index dd6c497..01fdfdb 100644 --- a/commands/mem.c +++ b/commands/mem.c @@ -233,7 +233,6 @@ 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 @@ "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 @@ "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 @@ "Copy memory at of bytes to \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 @@ "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) diff --git a/commands/meminfo.c b/commands/meminfo.c index 95f27e0..04b32b7 100644 --- a/commands/meminfo.c +++ b/commands/meminfo.c @@ -31,7 +31,6 @@ } U_BOOT_CMD_START(meminfo) - .maxargs = 1, .cmd = do_meminfo, .usage = "print info about memory usage", U_BOOT_CMD_END diff --git a/commands/memtest.c b/commands/memtest.c index 07b7b22..d2c6120 100644 --- a/commands/memtest.c +++ b/commands/memtest.c @@ -348,7 +348,6 @@ "\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) diff --git a/commands/mkdir.c b/commands/mkdir.c index a9c0b45..db1514b 100644 --- a/commands/mkdir.c +++ b/commands/mkdir.c @@ -64,7 +64,6 @@ "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) diff --git a/commands/mount.c b/commands/mount.c index 530bd8c..66767f7 100644 --- a/commands/mount.c +++ b/commands/mount.c @@ -71,7 +71,6 @@ "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) diff --git a/commands/nand.c b/commands/nand.c index b690966..07cf530 100644 --- a/commands/nand.c +++ b/commands/nand.c @@ -348,7 +348,6 @@ " -b 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) diff --git a/commands/net.c b/commands/net.c index f059e72..9114606 100644 --- a/commands/net.c +++ b/commands/net.c @@ -87,7 +87,6 @@ "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 @@ } 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 @@ "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 @@ } 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 @@ "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) diff --git a/commands/partition.c b/commands/partition.c index 877f82b..09991a2 100755 --- a/commands/partition.c +++ b/commands/partition.c @@ -155,7 +155,6 @@ "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 @@ "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) diff --git a/commands/printenv.c b/commands/printenv.c index 27b2049..a7efd14 100644 --- a/commands/printenv.c +++ b/commands/printenv.c @@ -72,7 +72,6 @@ U_BOOT_CMD_START(printenv) - .maxargs = CONFIG_MAXARGS, .cmd = do_printenv, .usage = "print environment variables", U_BOOT_CMD_HELP(cmd_printenv_help) diff --git a/commands/pwd.c b/commands/pwd.c index 7034585..683a240 100644 --- a/commands/pwd.c +++ b/commands/pwd.c @@ -30,7 +30,6 @@ } U_BOOT_CMD_START(pwd) - .maxargs = 1, .cmd = do_pwd, .usage = "print working directory", U_BOOT_CMD_END diff --git a/commands/readline.c b/commands/readline.c index f3fad4b..9b12da3 100644 --- a/commands/readline.c +++ b/commands/readline.c @@ -50,7 +50,6 @@ "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) diff --git a/commands/reginfo.c b/commands/reginfo.c index 781a92c..fe0b776 100644 --- a/commands/reginfo.c +++ b/commands/reginfo.c @@ -30,7 +30,6 @@ } U_BOOT_CMD_START(reginfo) - .maxargs = 1, .cmd = do_reginfo, .usage = "print register information", U_BOOT_CMD_END diff --git a/commands/reset.c b/commands/reset.c index e653f5a..1e9b74f 100644 --- a/commands/reset.c +++ b/commands/reset.c @@ -32,7 +32,6 @@ } U_BOOT_CMD_START(reset) - .maxargs = 1, .cmd = cmd_reset, .usage = "Perform RESET of the CPU", U_BOOT_CMD_END diff --git a/commands/rm.c b/commands/rm.c index d211718..a5b29d2 100644 --- a/commands/rm.c +++ b/commands/rm.c @@ -47,7 +47,6 @@ "Remove files\n"; U_BOOT_CMD_START(rm) - .maxargs = CONFIG_MAXARGS, .cmd = do_rm, .usage = "remove files", U_BOOT_CMD_HELP(cmd_rm_help) diff --git a/commands/rmdir.c b/commands/rmdir.c index 2d8d516..1248b8b 100644 --- a/commands/rmdir.c +++ b/commands/rmdir.c @@ -26,7 +26,6 @@ "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) diff --git a/commands/saveenv.c b/commands/saveenv.c index fc1eee7..d28b4d3 100644 --- a/commands/saveenv.c +++ b/commands/saveenv.c @@ -101,7 +101,6 @@ "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) diff --git a/commands/setenv.c b/commands/setenv.c index 9fbacd7..944c215 100644 --- a/commands/setenv.c +++ b/commands/setenv.c @@ -46,7 +46,6 @@ U_BOOT_CMD_START(setenv) - .maxargs = CONFIG_MAXARGS, .cmd = do_setenv, .usage = "set environment variables", U_BOOT_CMD_HELP(cmd_setenv_help) diff --git a/commands/sleep.c b/commands/sleep.c index 3c18a86..4a7aef0 100644 --- a/commands/sleep.c +++ b/commands/sleep.c @@ -44,7 +44,6 @@ } U_BOOT_CMD_START(sleep) - .maxargs = 2, .cmd = do_sleep, .usage = "delay execution for n seconds", U_BOOT_CMD_END diff --git a/commands/test.c b/commands/test.c index 67807c0..fa01bc0 100644 --- a/commands/test.c +++ b/commands/test.c @@ -231,7 +231,6 @@ 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) diff --git a/commands/timeout.c b/commands/timeout.c index 8093959..b0fd906 100644 --- a/commands/timeout.c +++ b/commands/timeout.c @@ -103,7 +103,6 @@ " -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) diff --git a/commands/true.c b/commands/true.c index 1ec5933..61381ab 100644 --- a/commands/true.c +++ b/commands/true.c @@ -30,7 +30,6 @@ } U_BOOT_CMD_START(true) - .maxargs = 1, .cmd = do_true, .usage = "do nothing, successfully", U_BOOT_CMD_END diff --git a/commands/umount.c b/commands/umount.c index 44b8407..d0ac525 100644 --- a/commands/umount.c +++ b/commands/umount.c @@ -43,7 +43,6 @@ "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) diff --git a/commands/version.c b/commands/version.c index b9075b9..a962680 100644 --- a/commands/version.c +++ b/commands/version.c @@ -32,7 +32,6 @@ } U_BOOT_CMD_START(version) - .maxargs = 1, .cmd = do_version, .usage = "print monitor version", U_BOOT_CMD_END diff --git a/common/command.c b/common/command.c index e6b4aff..f484520 100644 --- a/common/command.c +++ b/common/command.c @@ -56,7 +56,6 @@ } U_BOOT_CMD_START(exit) - .maxargs = 2, .cmd = do_exit, .usage = "exit script", U_BOOT_CMD_END @@ -101,11 +100,6 @@ /* 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) { diff --git a/common/hush.c b/common/hush.c index 70ccd04..0e58e99 100644 --- a/common/hush.c +++ b/common/hush.c @@ -1594,7 +1594,6 @@ "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 @@ "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, diff --git a/drivers/nand/nand_imx.c b/drivers/nand/nand_imx.c index b0106c2..bda8ecf 100644 --- a/drivers/nand/nand_imx.c +++ b/drivers/nand/nand_imx.c @@ -1206,7 +1206,6 @@ "Usage: nand_boot_test \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) diff --git a/drivers/nand/nand_imx_v2.c b/drivers/nand/nand_imx_v2.c index 4119e2c..6b47022 100644 --- a/drivers/nand/nand_imx_v2.c +++ b/drivers/nand/nand_imx_v2.c @@ -1124,7 +1124,6 @@ "Usage: nand_boot_test \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) diff --git a/drivers/nand/nand_s3c2410.c b/drivers/nand/nand_s3c2410.c index e330a79..6423f85 100644 --- a/drivers/nand/nand_s3c2410.c +++ b/drivers/nand/nand_s3c2410.c @@ -505,7 +505,6 @@ "Usage: nand_boot_test \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) diff --git a/drivers/usb/gadget/u_serial.c b/drivers/usb/gadget/u_serial.c index 80cbf44..5b22e15 100644 --- a/drivers/usb/gadget/u_serial.c +++ b/drivers/usb/gadget/u_serial.c @@ -485,7 +485,6 @@ } U_BOOT_CMD_START(mycdev) - .maxargs = CONFIG_MAXARGS, .cmd = do_mycdev, U_BOOT_CMD_END diff --git a/drivers/usb/usb.c b/drivers/usb/usb.c index 4655367..208a38c 100644 --- a/drivers/usb/usb.c +++ b/drivers/usb/usb.c @@ -490,7 +490,6 @@ "(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) diff --git a/include/command.h b/include/command.h index 5d57ecd..a72f240 100644 --- a/include/command.h +++ b/include/command.h @@ -46,7 +46,6 @@ 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) */ diff --git a/lib/driver.c b/lib/driver.c index 589bd8d..73bd9a8 100644 --- a/lib/driver.c +++ b/lib/driver.c @@ -335,7 +335,6 @@ "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) diff --git a/net/dhcp.c b/net/dhcp.c index cc2b78f..9a66dfb 100644 --- a/net/dhcp.c +++ b/net/dhcp.c @@ -609,7 +609,6 @@ } U_BOOT_CMD_START(dhcp) - .maxargs = 1, .cmd = do_dhcp, .usage = "invoke dhcp client to obtain ip/boot params", U_BOOT_CMD_END diff --git a/net/ping.c b/net/ping.c index 3336292..6c6b069 100644 --- a/net/ping.c +++ b/net/ping.c @@ -104,7 +104,6 @@ } U_BOOT_CMD_START(ping) - .maxargs = 2, .cmd = do_ping, .usage = "ping ", U_BOOT_CMD_END