From: YueHaibing Date: Thu, 11 Jul 2019 14:13:17 +0000 (+0800) Subject: scsi: qla2xxx: Remove unnecessary null check X-Git-Tag: Ubuntu-5.10.0-12.13~4475^2~254 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=0b3b6fe299c471e44ed8713b7a602882626e693f;p=mirror_ubuntu-hirsute-kernel.git scsi: qla2xxx: Remove unnecessary null check A null check before dma_pool_destroy is redundant, so remove it. This is detected by coccinelle. Signed-off-by: YueHaibing Acked-by: Himanshu Madhani Signed-off-by: Martin K. Petersen --- diff --git a/drivers/scsi/qla2xxx/qla_os.c b/drivers/scsi/qla2xxx/qla_os.c index 2e58cff9d200..3c59157bb3bd 100644 --- a/drivers/scsi/qla2xxx/qla_os.c +++ b/drivers/scsi/qla2xxx/qla_os.c @@ -4731,8 +4731,7 @@ qla2x00_mem_free(struct qla_hw_data *ha) } } - if (ha->dif_bundl_pool) - dma_pool_destroy(ha->dif_bundl_pool); + dma_pool_destroy(ha->dif_bundl_pool); ha->dif_bundl_pool = NULL; qlt_mem_free(ha);