diff options
author | Eric Sandeen <sandeen@redhat.com> | 2013-02-25 16:54:36 -0600 |
---|---|---|
committer | David Sterba <dsterba@suse.cz> | 2013-02-27 14:39:24 +0100 |
commit | b26746e462b67e4310cf88289703a74c3a213d14 (patch) | |
tree | c758e1b082e1ecfe0d4820e2a9d3edcfbcd1ed3a /cmds-device.c | |
parent | 220e1ccd87de6983f58a7ea23a8ca62ae8df0df2 (diff) |
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>
Diffstat (limited to 'cmds-device.c')
-rw-r--r-- | cmds-device.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/cmds-device.c b/cmds-device.c index 198ad689..58df6da6 100644 --- a/cmds-device.c +++ b/cmds-device.c @@ -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; } |