summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/send.c
diff options
context:
space:
mode:
authorEric Sandeen2013-01-31 01:54:52 +0100
committerJosef Bacik2013-02-20 18:59:14 +0100
commitb4c6f7b75ce9fa3bb78af314e1841af5716bb643 (patch)
tree9113afa73cdd3472fbf834de5d42d0c3a0e88176 /fs/btrfs/send.c
parentBtrfs: do not overcommit if we don't have enough space for global rsv (diff)
downloadkernel-qcow2-linux-b4c6f7b75ce9fa3bb78af314e1841af5716bb643.tar.gz
kernel-qcow2-linux-b4c6f7b75ce9fa3bb78af314e1841af5716bb643.tar.xz
kernel-qcow2-linux-b4c6f7b75ce9fa3bb78af314e1841af5716bb643.zip
btrfs: remove unused fd in btrfs_ioctl_send()
All we do is set it to NULL and test it :) Signed-off-by: Eric Sandeen <sandeen@redhat.com> Signed-off-by: Josef Bacik <jbacik@fusionio.com>
Diffstat (limited to 'fs/btrfs/send.c')
-rw-r--r--fs/btrfs/send.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/fs/btrfs/send.c b/fs/btrfs/send.c
index 321b7fb4e441..614da0d44d56 100644
--- a/fs/btrfs/send.c
+++ b/fs/btrfs/send.c
@@ -4536,7 +4536,6 @@ long btrfs_ioctl_send(struct file *mnt_file, void __user *arg_)
struct btrfs_fs_info *fs_info;
struct btrfs_ioctl_send_args *arg = NULL;
struct btrfs_key key;
- struct file *filp = NULL;
struct send_ctx *sctx = NULL;
u32 i;
u64 *clone_sources_tmp = NULL;
@@ -4673,8 +4672,6 @@ long btrfs_ioctl_send(struct file *mnt_file, void __user *arg_)
goto out;
out:
- if (filp)
- fput(filp);
kfree(arg);
vfree(clone_sources_tmp);