From 63e01b4969c9eef70b45df279f43a786b0cb2c09 Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Sat, 17 Oct 2009 12:49:47 +0200 Subject: call getopt_reset only once instead of calling getopt_reset in each command, call it only once before calling the command. Signed-off-by: Sascha Hauer --- commands/loadb.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'commands/loadb.c') diff --git a/commands/loadb.c b/commands/loadb.c index 890e977b2f..1fdf94487b 100644 --- a/commands/loadb.c +++ b/commands/loadb.c @@ -699,8 +699,6 @@ static int do_load_serial_bin(cmd_tbl_t *cmdtp, int argc, char *argv[]) char *output_file = NULL; struct console_device *cdev = NULL; - getopt_reset(); - while ((opt = getopt(argc, argv, "f:b:o:c")) > 0) { switch (opt) { case 'f': -- cgit v1.2.3