drivers/block/drbd: remove the null check for kmem_cache_destroy
authorzhong jiang <zhongjiang@huawei.com>
Wed, 8 Aug 2018 15:22:47 +0000 (23:22 +0800)
committerJens Axboe <axboe@kernel.dk>
Wed, 8 Aug 2018 16:04:42 +0000 (10:04 -0600)
commita12fc00b237c25519cc861b56dd4ca41bbec4ed3
treef055d27b928e926b53f6f3228fa637550506c1f6
parent69daf897d75b31ff90031bb0a49a8d65cedfe3ca
drivers/block/drbd: remove the null check for kmem_cache_destroy

kmem_cache_destroy has taken null pointer into account. So it is
safe to drop the null check before calling the function.

Signed-off-by: zhong jiang <zhongjiang@huawei.com>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/block/drbd/drbd_main.c