diff options
author | Kinglong Mee <kinglongmee@gmail.com> | 2016-01-29 21:36:35 +0800 |
---|---|---|
committer | David Sterba <dsterba@suse.com> | 2016-02-18 11:46:03 +0100 |
commit | 5598e9005a4076d6700bbd89d0cdbe5b2922a846 (patch) | |
tree | f0d5eb3931d5c990d23dabc39458248cbda6fbe2 /fs/btrfs/extent_map.c | |
parent | 89771cc98c5a4e8666e479dde171ffb52c6fa774 (diff) |
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/extent_map.c')
-rw-r--r-- | fs/btrfs/extent_map.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/btrfs/extent_map.c b/fs/btrfs/extent_map.c index 84fb56d5c018..cdbadeaef202 100644 --- a/fs/btrfs/extent_map.c +++ b/fs/btrfs/extent_map.c @@ -20,8 +20,7 @@ int __init extent_map_init(void) void extent_map_exit(void) { - if (extent_map_cache) - kmem_cache_destroy(extent_map_cache); + kmem_cache_destroy(extent_map_cache); } /** |