From 944a4515b27302ac42d5964b7400c72f4d692782 Mon Sep 17 00:00:00 2001 From: Daeseok Youn Date: Mon, 14 Apr 2014 15:37:02 +0900 Subject: [PATCH] btrfs: remove redundant null check in btrfs_dentry_release() It doesn't need to check NULL for kfree() Signed-off-by: Daeseok Youn Signed-off-by: Chris Mason --- fs/btrfs/inode.c | 3 +-- 1 file changed, 1 insertion(+), 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,