Commit 944a4515 authored by Daeseok Youn's avatar Daeseok Youn Committed by Chris Mason

btrfs: remove redundant null check in btrfs_dentry_release()

It doesn't need to check NULL for kfree()
Signed-off-by: default avatarDaeseok Youn <daeseok.youn@gmail.com>
Signed-off-by: default avatarChris Mason <clm@fb.com>
parent ef3b9af5
...@@ -5168,8 +5168,7 @@ static int btrfs_dentry_delete(const struct dentry *dentry) ...@@ -5168,8 +5168,7 @@ static int btrfs_dentry_delete(const struct dentry *dentry)
static void btrfs_dentry_release(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, static struct dentry *btrfs_lookup(struct inode *dir, struct dentry *dentry,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment