summaryrefslogtreecommitdiffstats
path: root/arch/arm
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 /arch/arm
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 'arch/arm')
-rw-r--r--arch/arm/cpu/cpu.c1
-rw-r--r--arch/arm/cpu/cpuinfo.c1
-rw-r--r--arch/arm/lib/armlinux.c2
-rw-r--r--arch/arm/mach-imx/clko.c1
-rw-r--r--arch/arm/mach-imx/speed.c1
-rw-r--r--arch/arm/mach-netx/generic.c1
6 files changed, 0 insertions, 7 deletions
diff --git a/arch/arm/cpu/cpu.c b/arch/arm/cpu/cpu.c
index 265a2b0b03..180f4583bd 100644
--- a/arch/arm/cpu/cpu.c
+++ b/arch/arm/cpu/cpu.c
@@ -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)
diff --git a/arch/arm/cpu/cpuinfo.c b/arch/arm/cpu/cpuinfo.c
index 632cffa446..b990cadee5 100644
--- a/arch/arm/cpu/cpuinfo.c
+++ b/arch/arm/cpu/cpuinfo.c
@@ -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
diff --git a/arch/arm/lib/armlinux.c b/arch/arm/lib/armlinux.c
index 65e14f0b21..04dcf493b8 100644
--- a/arch/arm/lib/armlinux.c
+++ b/arch/arm/lib/armlinux.c
@@ -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)
diff --git a/arch/arm/mach-imx/clko.c b/arch/arm/mach-imx/clko.c
index bdedd66b7d..11edfb5ed2 100644
--- a/arch/arm/mach-imx/clko.c
+++ b/arch/arm/mach-imx/clko.c
@@ -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)
diff --git a/arch/arm/mach-imx/speed.c b/arch/arm/mach-imx/speed.c
index 74b7e30a97..e9b5ca01fd 100644
--- a/arch/arm/mach-imx/speed.c
+++ b/arch/arm/mach-imx/speed.c
@@ -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
diff --git a/arch/arm/mach-netx/generic.c b/arch/arm/mach-netx/generic.c
index e2ad29c62a..985f3b8cef 100644
--- a/arch/arm/mach-netx/generic.c
+++ b/arch/arm/mach-netx/generic.c
@@ -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