projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
96f1bb5
)
btrfs: remove unused fd in btrfs_ioctl_send()
author
Eric Sandeen
<sandeen@redhat.com>
Thu, 31 Jan 2013 00:54:52 +0000
(
00:54
+0000)
committer
Josef Bacik
<jbacik@fusionio.com>
Wed, 20 Feb 2013 17:59:14 +0000
(12:59 -0500)
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>
fs/btrfs/send.c
patch
|
blob
|
blame
|
history
diff --git
a/fs/btrfs/send.c
b/fs/btrfs/send.c
index 321b7fb4e4417573e9c404069c6b249afb8ab488..614da0d44d56b2dd183221ab51fa85d7d1071918 100644
(file)
--- 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);