From 87e01f28ccc85474e18e1218c9d84f98e2e8977d Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Sat, 17 Oct 2009 12:44:19 +0200 Subject: commands: return COMMAND_ERROR_USAGE instead of calling u_boot_cmd_usage in each command to safe space. Signed-off-by: Sascha Hauer --- commands/readline.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'commands/readline.c') diff --git a/commands/readline.c b/commands/readline.c index cd24f3508a..f3fad4bb52 100644 --- a/commands/readline.c +++ b/commands/readline.c @@ -31,10 +31,8 @@ static int do_readline (cmd_tbl_t *cmdtp, int argc, char *argv[]) { char *buf = xzalloc(CONFIG_CBSIZE); - if (argc < 3) { - u_boot_cmd_usage(cmdtp); - return 1; - } + if (argc < 3) + return COMMAND_ERROR_USAGE; if (readline(argv[1], buf, CONFIG_CBSIZE) < 0) { free(buf); -- cgit v1.2.3