diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2009-10-19 16:16:54 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2009-10-19 16:18:33 +0200 |
commit | 420a3173f0f7d2bd35f32be437e4888a82047560 (patch) | |
tree | 445f3f6a62d1a88af8522696dba1764f27326f46 /commands/net.c | |
parent | f4ca85a2a3773202f556e19c9227d83508316108 (diff) | |
download | barebox-420a3173f0f7d2bd35f32be437e4888a82047560.tar.gz barebox-420a3173f0f7d2bd35f32be437e4888a82047560.tar.xz |
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>
Diffstat (limited to 'commands/net.c')
-rw-r--r-- | commands/net.c | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/commands/net.c b/commands/net.c index f059e7284b..9114606a8e 100644 --- a/commands/net.c +++ b/commands/net.c @@ -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) |