summaryrefslogtreecommitdiffstats
path: root/fs/btrfs/inode.c
diff options
context:
space:
mode:
authorDaeseok Youn <daeseok.youn@gmail.com>2014-04-14 15:37:02 +0900
committerChris Mason <clm@fb.com>2014-06-09 17:20:31 -0700
commit944a4515b27302ac42d5964b7400c72f4d692782 (patch)
tree2843ccc70e6413b4d36f2df7548ff26a532a6870 /fs/btrfs/inode.c
parentef3b9af50bfa6a1f02cd7b3f5124b712b1ba3e3c (diff)
downloadlinux-944a4515b27302ac42d5964b7400c72f4d692782.tar.bz2
btrfs: remove redundant null check in btrfs_dentry_release()
It doesn't need to check NULL for kfree() Signed-off-by: Daeseok Youn <daeseok.youn@gmail.com> Signed-off-by: Chris Mason <clm@fb.com>
Diffstat (limited to 'fs/btrfs/inode.c')
-rw-r--r--fs/btrfs/inode.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/btrfs/inode.c b/fs/btrfs/inode.c
index 5c0def8dd761..36c13e391ae3 100644
--- a/fs/btrfs/inode.c
+++ b/fs/btrfs/inode.c
@@ -5168,8 +5168,7 @@ static int btrfs_dentry_delete(const struct dentry *dentry)
static void btrfs_dentry_release(struct dentry *dentry)
{
- if (dentry->d_fsdata)
- kfree(dentry->d_fsdata);
+ kfree(dentry->d_fsdata);
}
static struct dentry *btrfs_lookup(struct inode *dir, struct dentry *dentry,