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/nand.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'commands/nand.c') diff --git a/commands/nand.c b/commands/nand.c index acec327dcd..b690966f65 100644 --- a/commands/nand.c +++ b/commands/nand.c @@ -271,8 +271,6 @@ static int do_nand(cmd_tbl_t *cmdtp, int argc, char *argv[]) struct nand_bb *bb; int command = 0, badblock = 0; - getopt_reset(); - while((opt = getopt(argc, argv, "adb:")) > 0) { if (command) { printf("only one command may be given\n"); -- cgit v1.2.3