summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/ctree.c
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2016-09-13 04:35:52 +0900
committerDavid Sterba <dsterba@suse.com>2016-09-26 18:08:38 +0200
commite2c8990734874061d144184dbf0d66e2827c216f (patch)
treedb7e9e2e3a5c56ee271892af33dcc50a1d5f3355 /fs/btrfs/ctree.c
parent6b722c1747d533ac6d4df110dc8233db46918b65 (diff)
downloadlinux-stable-e2c8990734874061d144184dbf0d66e2827c216f.tar.gz
linux-stable-e2c8990734874061d144184dbf0d66e2827c216f.tar.bz2
linux-stable-e2c8990734874061d144184dbf0d66e2827c216f.zip
btrfs: squash lines for simple wrapper functions
Remove unneeded variables and assignments. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com> Reviewed-by: David Sterba <dsterba@suse.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/ctree.c')
-rw-r--r--fs/btrfs/ctree.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/fs/btrfs/ctree.c b/fs/btrfs/ctree.c
index dcd39cca7e43..494e6b17bebd 100644
--- a/fs/btrfs/ctree.c
+++ b/fs/btrfs/ctree.c
@@ -45,9 +45,7 @@ static int tree_mod_log_free_eb(struct btrfs_fs_info *fs_info,
struct btrfs_path *btrfs_alloc_path(void)
{
- struct btrfs_path *path;
- path = kmem_cache_zalloc(btrfs_path_cachep, GFP_NOFS);
- return path;
+ return kmem_cache_zalloc(btrfs_path_cachep, GFP_NOFS);
}
/*