btrfs-progs: Remove write-only var fdres in cmd_dev_stats()

fdres is initialized to -1, then later tested, but never
set.  Just remove it.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
This commit is contained in:
Eric Sandeen 2013-02-25 16:54:36 -06:00 committed by David Sterba
parent 220e1ccd87
commit b26746e462
1 changed files with 0 additions and 3 deletions

View File

@ -295,7 +295,6 @@ static int cmd_dev_stats(int argc, char **argv)
int fdmnt; int fdmnt;
int i; int i;
char c; char c;
int fdres = -1;
int err = 0; int err = 0;
__u64 flags = 0; __u64 flags = 0;
@ -390,8 +389,6 @@ static int cmd_dev_stats(int argc, char **argv)
out: out:
free(di_args); free(di_args);
close(fdmnt); close(fdmnt);
if (fdres > -1)
close(fdres);
return err; return err;
} }