summaryrefslogtreecommitdiffstats
path: root/commands/nand.c
diff options
context:
space:
mode:
authorSascha Hauer <sha@pengutronix.de>2009-10-17 12:49:47 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2009-10-19 10:18:52 +0200
commit63e01b4969c9eef70b45df279f43a786b0cb2c09 (patch)
treee032002d8e78e631b00572cf4937b9c72c651d47 /commands/nand.c
parent87e01f28ccc85474e18e1218c9d84f98e2e8977d (diff)
downloadbarebox-63e01b4969c9eef70b45df279f43a786b0cb2c09.tar.gz
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 <sha@pengutronix.de>
Diffstat (limited to 'commands/nand.c')
-rw-r--r--commands/nand.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/commands/nand.c b/commands/nand.c
index acec327..b690966 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");