aboutsummaryrefslogtreecommitdiffstats
path: root/fs/btrfs/ordered-data.c
diff options
context:
space:
mode:
authorKinglong Mee <[email protected]>2016-01-29 13:36:35 +0000
committerDavid Sterba <[email protected]>2016-02-18 10:46:03 +0000
commit5598e9005a4076d6700bbd89d0cdbe5b2922a846 (patch)
treef0d5eb3931d5c990d23dabc39458248cbda6fbe2 /fs/btrfs/ordered-data.c
parentbtrfs: fix build warning (diff)
downloadkernel-5598e9005a4076d6700bbd89d0cdbe5b2922a846.tar.gz
kernel-5598e9005a4076d6700bbd89d0cdbe5b2922a846.zip
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 <[email protected]> Signed-off-by: David Sterba <[email protected]>
Diffstat (limited to 'fs/btrfs/ordered-data.c')
-rw-r--r--fs/btrfs/ordered-data.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/btrfs/ordered-data.c b/fs/btrfs/ordered-data.c
index 8c27292ea9ea..988eb1513aa5 100644
--- a/fs/btrfs/ordered-data.c
+++ b/fs/btrfs/ordered-data.c
@@ -1114,6 +1114,5 @@ int __init ordered_data_init(void)
void ordered_data_exit(void)
{
- if (btrfs_ordered_extent_cache)
- kmem_cache_destroy(btrfs_ordered_extent_cache);
+ kmem_cache_destroy(btrfs_ordered_extent_cache);
}