mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-22 05:01:27 +00:00
qla2x00t-32gbit: Remove unnecessary null check
A null check before dma_pool_destroy is redundant, so remove it. This is detected by coccinelle. [ commit 0b3b6fe299c471e44ed8713b7a602882626e693f upstream ] git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@8521 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
@@ -4786,8 +4786,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