summaryrefslogtreecommitdiffstats
path: root/commands/readline.c
diff options
context:
space:
mode:
Diffstat (limited to 'commands/readline.c')
-rw-r--r--commands/readline.c6
1 files changed, 2 insertions, 4 deletions
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);