summaryrefslogtreecommitdiffstats
path: root/fs/ext4/extents_status.c
diff options
context:
space:
mode:
authorSean Fu <fxinrong@gmail.com>2018-05-20 22:44:13 -0400
committerTheodore Ts'o <tytso@mit.edu>2018-05-20 22:44:13 -0400
commit21c580d88e2abd62b58ce34872cceb5c0d056330 (patch)
tree260952e63ede44a7571f1c36ca020de51a0e2e94 /fs/ext4/extents_status.c
parent8bdd5b60e0273e6682d5c269c70e6287ae60eb55 (diff)
downloadop-kernel-dev-21c580d88e2abd62b58ce34872cceb5c0d056330.zip
op-kernel-dev-21c580d88e2abd62b58ce34872cceb5c0d056330.tar.gz
ext4: remove NULL check before calling kmem_cache_destroy()
Signed-off-by: Sean Fu <fxinrong@gmail.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'fs/ext4/extents_status.c')
-rw-r--r--fs/ext4/extents_status.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/ext4/extents_status.c b/fs/ext4/extents_status.c
index 763ef18..c4e6fb1 100644
--- a/fs/ext4/extents_status.c
+++ b/fs/ext4/extents_status.c
@@ -162,8 +162,7 @@ int __init ext4_init_es(void)
void ext4_exit_es(void)
{
- if (ext4_es_cachep)
- kmem_cache_destroy(ext4_es_cachep);
+ kmem_cache_destroy(ext4_es_cachep);
}
void ext4_es_init_tree(struct ext4_es_tree *tree)
OpenPOWER on IntegriCloud