summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-imx/clko.c
diff options
context:
space:
mode:
authorSascha Hauer <sha@pengutronix.de>2009-10-17 12:44:19 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2009-10-19 10:18:52 +0200
commit87e01f28ccc85474e18e1218c9d84f98e2e8977d (patch)
treec1918930683559d745dcc955d9572b5f568a02f5 /arch/arm/mach-imx/clko.c
parent0ecf7f1aeb906e3b30500080fbc4e1d1b770f1a2 (diff)
downloadbarebox-87e01f28ccc85474e18e1218c9d84f98e2e8977d.tar.gz
barebox-87e01f28ccc85474e18e1218c9d84f98e2e8977d.tar.xz
commands: return COMMAND_ERROR_USAGE
instead of calling u_boot_cmd_usage in each command to safe space. Signed-off-by: Sascha Hauer <sha@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-imx/clko.c')
-rw-r--r--arch/arm/mach-imx/clko.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/arch/arm/mach-imx/clko.c b/arch/arm/mach-imx/clko.c
index 446d830826..9ef5ac8e1f 100644
--- a/arch/arm/mach-imx/clko.c
+++ b/arch/arm/mach-imx/clko.c
@@ -21,10 +21,8 @@ static int do_clko (cmd_tbl_t *cmdtp, int argc, char *argv[])
}
}
- if (div == 0 && src == -2) {
- u_boot_cmd_usage(cmdtp);
- return 0;
- }
+ if (div == 0 && src == -2)
+ return COMMAND_ERROR_USAGE;
if (src == -1) {
imx_clko_set_src(-1);