diff options
author | Zach Brown <zab@redhat.com> | 2013-01-17 16:32:41 -0800 |
---|---|---|
committer | Zach Brown <zab@redhat.com> | 2013-02-05 16:09:38 -0800 |
commit | d86394da233c4305fb72daf72914cbb193373e1d (patch) | |
tree | ba51ec58152b46b02cb40b26301d61ddd4a21793 /cmds-receive.c | |
parent | 9e4ad990992ebb588c599832d8d7dc0fe2a37475 (diff) |
btrfs-progs: remove unused info_fd
finish_subvol() initializes and tests info_fd but it is never used.
Signed-off-by: Zach Brown <zab@redhat.com>
Diffstat (limited to 'cmds-receive.c')
-rw-r--r-- | cmds-receive.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/cmds-receive.c b/cmds-receive.c index 973687f3..e6291744 100644 --- 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; } |