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:
9e4ad99
)
btrfs-progs: remove unused info_fd
author
Zach Brown
<zab@redhat.com>
Fri, 18 Jan 2013 00:32:41 +0000
(16:32 -0800)
committer
Zach Brown
<zab@redhat.com>
Wed, 6 Feb 2013 00:09:38 +0000
(16:09 -0800)
finish_subvol() initializes and tests info_fd but it is never used.
Signed-off-by: Zach Brown <zab@redhat.com>
cmds-receive.c
patch
|
blob
|
history
diff --git
a/cmds-receive.c
b/cmds-receive.c
index
973687f
..
e629174
100644
(file)
--- a/
cmds-receive.c
+++ b/
cmds-receive.c
@@
-71,7
+71,6
@@
static int finish_subvol(struct btrfs_receive *r)
{
int ret;
int subvol_fd = -1;
- int info_fd = -1;
struct btrfs_ioctl_received_subvol_args rs_args;
char uuid_str[128];
u64 flags;
@@
-132,8
+131,6
@@
static int finish_subvol(struct btrfs_receive *r)
out:
if (subvol_fd != -1)
close(subvol_fd);
- if (info_fd != -1)
- close(info_fd);
return ret;
}