]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
scsi: virtio_scsi: Remove unnecessary condition check
authorXianting Tian <xianting_tian@126.com>
Thu, 9 Jul 2020 15:06:07 +0000 (11:06 -0400)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 14 Jul 2020 03:14:46 +0000 (23:14 -0400)
commit92e8d0323a5140c3e4a0e7098d3a5f43e2da87e8
tree024d7dd323659aee923c3d11e2f55e0befd4f4f9
parentb92a4a9f7be80fd519fc12c976a1bc7abbabf9a5
scsi: virtio_scsi: Remove unnecessary condition check

kmem_cache_destroy() and mempool_destroy() both correctly handle null
pointer parameters. There is no need to check if the parameter is null
before calling these functions.

Link: https://lore.kernel.org/r/1594307167-8807-1-git-send-email-xianting_tian@126.com
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Acked-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Xianting Tian <xianting_tian@126.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/virtio_scsi.c