Skip to content
Commit 62d2a194 authored by Chengguang Xu's avatar Chengguang Xu Committed by Jens Axboe
Browse files

block: remove unnecessary condition check



kmem_cache_destroy() can handle NULL pointer correctly, so there is
no need to check e->icq_cache before calling kmem_cache_destroy().

Signed-off-by: default avatarChengguang Xu <cgxu519@gmx.com>
Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 46cb52ad
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment