diff options
author | Xianting Tian <xianting_tian@126.com> | 2020-07-09 11:06:07 -0400 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2020-07-13 23:14:46 -0400 |
commit | 92e8d0323a5140c3e4a0e7098d3a5f43e2da87e8 (patch) | |
tree | 024d7dd323659aee923c3d11e2f55e0befd4f4f9 /drivers/scsi/cxgbi | |
parent | b92a4a9f7be80fd519fc12c976a1bc7abbabf9a5 (diff) | |
download | linux-92e8d0323a5140c3e4a0e7098d3a5f43e2da87e8.tar.bz2 |
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>
Diffstat (limited to 'drivers/scsi/cxgbi')
0 files changed, 0 insertions, 0 deletions