diff options
author | Sean Fu | 2018-05-21 04:44:13 +0200 |
---|---|---|
committer | Theodore Ts'o | 2018-05-21 04:44:13 +0200 |
commit | 21c580d88e2abd62b58ce34872cceb5c0d056330 (patch) | |
tree | 260952e63ede44a7571f1c36ca020de51a0e2e94 /fs/ext4/mballoc.c | |
parent | jbd2: remove NULL check before calling kmem_cache_destroy() (diff) | |
download | kernel-qcow2-linux-21c580d88e2abd62b58ce34872cceb5c0d056330.tar.gz kernel-qcow2-linux-21c580d88e2abd62b58ce34872cceb5c0d056330.tar.xz kernel-qcow2-linux-21c580d88e2abd62b58ce34872cceb5c0d056330.zip |
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/mballoc.c')
-rw-r--r-- | fs/ext4/mballoc.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/ext4/mballoc.c b/fs/ext4/mballoc.c index 0d473991eebd..243c42fdc155 100644 --- a/fs/ext4/mballoc.c +++ b/fs/ext4/mballoc.c @@ -2537,8 +2537,7 @@ static void ext4_groupinfo_destroy_slabs(void) int i; for (i = 0; i < NR_GRPINFO_CACHES; i++) { - if (ext4_groupinfo_caches[i]) - kmem_cache_destroy(ext4_groupinfo_caches[i]); + kmem_cache_destroy(ext4_groupinfo_caches[i]); ext4_groupinfo_caches[i] = NULL; } } |