summaryrefslogtreecommitdiffstats
path: root/commands/mem.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2009-10-19 16:16:54 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2009-10-19 16:18:33 +0200
commit420a3173f0f7d2bd35f32be437e4888a82047560 (patch)
tree445f3f6a62d1a88af8522696dba1764f27326f46 /commands/mem.c
parentf4ca85a2a3773202f556e19c9227d83508316108 (diff)
downloadbarebox-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/mem.c')
-rw-r--r--commands/mem.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/commands/mem.c b/commands/mem.c
index dd6c497c51..01fdfdbb67 100644
--- a/commands/mem.c
+++ b/commands/mem.c
@@ -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)