diff options
author | Sascha Hauer <sha@pengutronix.de> | 2009-10-17 12:49:47 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2009-10-19 10:18:52 +0200 |
commit | 63e01b4969c9eef70b45df279f43a786b0cb2c09 (patch) | |
tree | e032002d8e78e631b00572cf4937b9c72c651d47 /arch/arm/mach-imx/clko.c | |
parent | 87e01f28ccc85474e18e1218c9d84f98e2e8977d (diff) | |
download | barebox-63e01b4969c9eef70b45df279f43a786b0cb2c09.tar.gz barebox-63e01b4969c9eef70b45df279f43a786b0cb2c09.tar.xz |
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 'arch/arm/mach-imx/clko.c')
-rw-r--r-- | arch/arm/mach-imx/clko.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/arm/mach-imx/clko.c b/arch/arm/mach-imx/clko.c index 9ef5ac8e1f..bdedd66b7d 100644 --- a/arch/arm/mach-imx/clko.c +++ b/arch/arm/mach-imx/clko.c @@ -8,8 +8,6 @@ static int do_clko (cmd_tbl_t *cmdtp, int argc, char *argv[]) { int opt, div = 0, src = -2, ret; - getopt_reset(); - while((opt = getopt(argc, argv, "d:s:")) > 0) { switch(opt) { case 'd': |