diff options
author | Wang Long <wanglong19@meituan.com> | 2018-05-20 22:38:26 -0400 |
---|---|---|
committer | Theodore Ts'o <tytso@mit.edu> | 2018-05-20 22:38:26 -0400 |
commit | 8bdd5b60e0273e6682d5c269c70e6287ae60eb55 (patch) | |
tree | f7b345a2e9844b29a67c285d482b61ac1a5e1781 /net/ncsi/ncsi-aen.c | |
parent | 9196f57151ffe817582efdde4f0b18eaa6637243 (diff) | |
download | blackbird-obmc-linux-8bdd5b60e0273e6682d5c269c70e6287ae60eb55.tar.gz blackbird-obmc-linux-8bdd5b60e0273e6682d5c269c70e6287ae60eb55.zip |
jbd2: remove NULL check before calling kmem_cache_destroy()
The kmem_cache_destroy() function already checks for null pointers, so
we can remove the check at the call site.
This patch also sets jbd2_handle_cache and jbd2_inode_cache to be NULL
after freeing them in jbd2_journal_destroy_handle_cache().
Signed-off-by: Wang Long <wanglong19@meituan.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Reviewed-by: Jan Kara <jack@suse.cz>
Diffstat (limited to 'net/ncsi/ncsi-aen.c')
0 files changed, 0 insertions, 0 deletions