Commit 0b3b6fe2 authored by YueHaibing's avatar YueHaibing Committed by Martin K. Petersen
Browse files

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: default avatarYueHaibing <yuehaibing@huawei.com>
Acked-by: default avatarHimanshu Madhani <hmadhani@marvell.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent 838c1efc
Loading
Loading
Loading
Loading
+1 −2
Original line number Diff line number Diff line
@@ -4731,7 +4731,6 @@ qla2x00_mem_free(struct qla_hw_data *ha)
		}
	}

	if (ha->dif_bundl_pool)
	dma_pool_destroy(ha->dif_bundl_pool);
	ha->dif_bundl_pool = NULL;