mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-11 12:44:49 -04:00
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 <yuehaibing@huawei.com> Acked-by: Himanshu Madhani <hmadhani@marvell.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
committed by
Martin K. Petersen
parent
838c1efc6a
commit
0b3b6fe299
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user