Re: [PATCH] scsi: virtio_scsi: remove unnecessary condition check

2020-07-13 Thread Martin K. Petersen
On Thu, 9 Jul 2020 11:06:07 -0400, Xianting Tian wrote: > kmem_cache_destroy and mempool_destroy can correctly handle > null pointer parameter, so there is no need to check if the > parameter is null before calling kmem_cache_destroy and > mempool_destroy. Applied to 5.9/scsi-queue, thanks!

Re: [PATCH] scsi: virtio_scsi: remove unnecessary condition check

2020-07-09 Thread Paolo Bonzini
On 09/07/20 16:46, Xianting Tian wrote: > kmem_cache_destroy can correctly handle null pointer parameter, > so there is no need to check if the parameter is null before > calling kmem_cache_destroy. > > Signed-off-by: Xianting Tian > --- > drivers/scsi/virtio_scsi.c | 6 ++ > 1 file

Re: [PATCH] scsi: virtio_scsi: remove unnecessary condition check

2020-07-09 Thread Paolo Bonzini
On 09/07/20 17:06, Xianting Tian wrote: > kmem_cache_destroy and mempool_destroy can correctly handle > null pointer parameter, so there is no need to check if the > parameter is null before calling kmem_cache_destroy and > mempool_destroy. > > Signed-off-by: Xianting Tian > --- >