aboutsummaryrefslogtreecommitdiffstats
path: root/cmds-quota.c
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2016-07-13 19:41:55 +0200
committerDavid Sterba <dsterba@suse.com>2016-07-13 19:41:55 +0200
commitf551548372efa9a22a34e4f1b74fa794d304e6f5 (patch)
tree7c31ab7f1819e84ac62dc17bb3b00d6cea5a463c /cmds-quota.c
parent83dc05b013ce08d68a4a3cdcf17e6c5506a8383e (diff)
downloadbtrfs-progs-f551548372efa9a22a34e4f1b74fa794d304e6f5.tar.gz
btrfs-progs-f551548372efa9a22a34e4f1b74fa794d304e6f5.tar.xz
btrfs-progs-f551548372efa9a22a34e4f1b74fa794d304e6f5.zip
btrfs-progs: do not set optind if not necessary
In the subcommand callbacks that are called just once, we don't need to explicitly reset optind. Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'cmds-quota.c')
-rw-r--r--cmds-quota.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/cmds-quota.c b/cmds-quota.c
index 568482f..75c032b 100644
--- a/cmds-quota.c
+++ b/cmds-quota.c
@@ -120,7 +120,6 @@ static int cmd_quota_rescan(int argc, char **argv)
DIR *dirstream = NULL;
int wait_for_completion = 0;
- optind = 1;
while (1) {
int c = getopt(argc, argv, "sw");
if (c < 0)