From: Daeseok Youn Date: Mon, 14 Apr 2014 06:37:02 +0000 (+0900) Subject: btrfs: remove redundant null check in btrfs_dentry_release() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=944a4515b27302ac42d5964b7400c72f4d692782;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git 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 --- 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,