summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorDaeseok Youn2014-04-14 08:37:02 +0200
committerChris Mason2014-06-10 02:20:31 +0200
commit944a4515b27302ac42d5964b7400c72f4d692782 (patch)
tree2843ccc70e6413b4d36f2df7548ff26a532a6870 /fs
parentBtrfs: implement inode_operations callback tmpfile (diff)
downloadkernel-qcow2-linux-944a4515b27302ac42d5964b7400c72f4d692782.tar.gz
kernel-qcow2-linux-944a4515b27302ac42d5964b7400c72f4d692782.tar.xz
kernel-qcow2-linux-944a4515b27302ac42d5964b7400c72f4d692782.zip
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')
-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,