btrfs: remove redundant null check in btrfs_dentry_release()
authorDaeseok Youn <daeseok.youn@gmail.com>
Mon, 14 Apr 2014 06:37:02 +0000 (15:37 +0900)
committerChris Mason <clm@fb.com>
Tue, 10 Jun 2014 00:20:31 +0000 (17:20 -0700)
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>
fs/btrfs/inode.c

index 5c0def8dd761b41f21964eb5432044636ab873b2..36c13e391ae3fe5c4a47c0b842f0c6c6f2a53e7f 100644 (file)
@@ -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,