projects
/
platform
/
upstream
/
btrfs-progs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
220e1cc
)
btrfs-progs: Remove write-only var fdres in cmd_dev_stats()
author
Eric Sandeen
<sandeen@redhat.com>
Mon, 25 Feb 2013 22:54:36 +0000
(16:54 -0600)
committer
David Sterba
<dsterba@suse.cz>
Wed, 27 Feb 2013 13:39:24 +0000
(14:39 +0100)
fdres is initialized to -1, then later tested, but never
set. Just remove it.
Signed-off-by: Eric Sandeen <sandeen@redhat.com>
cmds-device.c
patch
|
blob
|
history
diff --git
a/cmds-device.c
b/cmds-device.c
index
198ad68
..
58df6da
100644
(file)
--- 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;
}