summaryrefslogtreecommitdiff
path: root/fs/btrfs/backref.c
diff options
context:
space:
mode:
authorKinglong Mee <kinglongmee@gmail.com>2016-01-29 16:36:35 +0300
committerDavid Sterba <dsterba@suse.com>2016-02-18 13:46:03 +0300
commit5598e9005a4076d6700bbd89d0cdbe5b2922a846 (patch)
treef0d5eb3931d5c990d23dabc39458248cbda6fbe2 /fs/btrfs/backref.c
parent89771cc98c5a4e8666e479dde171ffb52c6fa774 (diff)
downloadlinux-5598e9005a4076d6700bbd89d0cdbe5b2922a846.tar.xz
btrfs: drop null testing before destroy functions
Cleanup. kmem_cache_destroy has support NULL argument checking, so drop the double null testing before calling it. Signed-off-by: Kinglong Mee <kinglongmee@gmail.com> Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'fs/btrfs/backref.c')
-rw-r--r--fs/btrfs/backref.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/btrfs/backref.c b/fs/btrfs/backref.c
index dc6e9a32d019..447d0ac736db 100644
--- a/fs/btrfs/backref.c
+++ b/fs/btrfs/backref.c
@@ -148,8 +148,7 @@ int __init btrfs_prelim_ref_init(void)
void btrfs_prelim_ref_exit(void)
{
- if (btrfs_prelim_ref_cache)
- kmem_cache_destroy(btrfs_prelim_ref_cache);
+ kmem_cache_destroy(btrfs_prelim_ref_cache);
}
/*