Re: [PATCH] drivers/block/drbd: remove the null check for kmem_cache_destroy

2018-08-08 Thread Jens Axboe
On 8/8/18 9:22 AM, zhong jiang wrote: > kmem_cache_destroy has taken null pointer into account. So it is > safe to drop the null check before calling the function. Applied, thanks. -- Jens Axboe

Re: [PATCH] drivers/block/drbd: remove the null check for kmem_cache_destroy

2018-08-08 Thread Jens Axboe
On 8/8/18 9:22 AM, zhong jiang wrote: > kmem_cache_destroy has taken null pointer into account. So it is > safe to drop the null check before calling the function. Applied, thanks. -- Jens Axboe

[PATCH] drivers/block/drbd: remove the null check for kmem_cache_destroy

2018-08-08 Thread zhong jiang
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 --- drivers/block/drbd/drbd_main.c | 12 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/drivers/block/drbd/drbd_main.c

[PATCH] drivers/block/drbd: remove the null check for kmem_cache_destroy

2018-08-08 Thread zhong jiang
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 --- drivers/block/drbd/drbd_main.c | 12 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/drivers/block/drbd/drbd_main.c