summaryrefslogtreecommitdiffstats
path: root/commands/insmod.c
diff options
context:
space:
mode:
Diffstat (limited to 'commands/insmod.c')
-rw-r--r--commands/insmod.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/commands/insmod.c b/commands/insmod.c
index 28a59ead56..0b7c91ff00 100644
--- a/commands/insmod.c
+++ b/commands/insmod.c
@@ -11,10 +11,8 @@ static int do_insmod (cmd_tbl_t *cmdtp, int argc, char *argv[])
void *buf;
int len;
- if (argc < 2) {
- u_boot_cmd_usage(cmdtp);
- return 1;
- }
+ if (argc < 2)
+ return COMMAND_ERROR_USAGE;
buf = read_file(argv[1], &len);
if (!buf) {