]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitee22b9ec08a4881adc349daadc510ff8080d79ae
treedb9237beb8b83d40069a2090b263211dc792945e
parent88e0efcc6a3b62b6afd87bf7fc7840ee7becd6e1
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