diff options
author | 2014-04-14 15:37:02 +0900 | |
---|---|---|
committer | 2014-06-09 17:20:31 -0700 | |
commit | 944a4515b27302ac42d5964b7400c72f4d692782 (patch) | |
tree | 2843ccc70e6413b4d36f2df7548ff26a532a6870 | |
parent | Btrfs: implement inode_operations callback tmpfile (diff) | |
download | linux-dev-944a4515b27302ac42d5964b7400c72f4d692782.tar.xz linux-dev-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>
-rw-r--r-- | fs/btrfs/inode.c | 3 |
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, |