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:
parent
220e1ccd87
commit
b26746e462
|
@ -295,7 +295,6 @@ static int cmd_dev_stats(int argc, char **argv)
|
|||
int fdmnt;
|
||||
int i;
|
||||
char c;
|
||||
int fdres = -1;
|
||||
int err = 0;
|
||||
__u64 flags = 0;
|
||||
|
||||
|
@ -390,8 +389,6 @@ static int cmd_dev_stats(int argc, char **argv)
|
|||
out:
|
||||
free(di_args);
|
||||
close(fdmnt);
|
||||
if (fdres > -1)
|
||||
close(fdres);
|
||||
|
||||
return err;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue