Commit c3e5aac3 authored by Saurav Girepunje's avatar Saurav Girepunje Committed by Martin K. Petersen

scsi: lpfc: Fix NULL check before mempool_destroy is not needed

mempool_destroy has taken null pointer check into account. Remove the
redundant check.

Link: https://lore.kernel.org/r/20191026194712.GA22249@sauravSigned-off-by: default avatarSaurav Girepunje <saurav.girepunje@gmail.com>
Reviewed-by: default avatarJames Smart <james.smart@broadcom.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
parent 5792a0e8
...@@ -13464,7 +13464,6 @@ lpfc_sli4_oas_verify(struct lpfc_hba *phba) ...@@ -13464,7 +13464,6 @@ lpfc_sli4_oas_verify(struct lpfc_hba *phba)
phba->cfg_fof = 1; phba->cfg_fof = 1;
} else { } else {
phba->cfg_fof = 0; phba->cfg_fof = 0;
if (phba->device_data_mem_pool)
mempool_destroy(phba->device_data_mem_pool); mempool_destroy(phba->device_data_mem_pool);
phba->device_data_mem_pool = NULL; phba->device_data_mem_pool = NULL;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment