block: remove unnecessary condition check
authorChengguang Xu <cgxu519@gmx.com>
Mon, 27 Aug 2018 23:31:11 +0000 (07:31 +0800)
committerJens Axboe <axboe@kernel.dk>
Tue, 28 Aug 2018 01:16:06 +0000 (19:16 -0600)
commit62d2a1940709198a522a43ff8be8b8f6b3654dec
treedb9237beb8b83d40069a2090b263211dc792945e
parent46cb52ad414ac829680d0bb8cc7090ac2b577ca7
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: Chengguang Xu <cgxu519@gmx.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
block/elevator.c