]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitda6b75a40d6888fd6f0e28ecd9bfc2c24a5722bd
treef055d27b928e926b53f6f3228fa637550506c1f6
parent5d6e7c1c427c43a052838949406d02fab1ff1dee
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