mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
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@saurav Signed-off-by: Saurav Girepunje <saurav.girepunje@gmail.com> Reviewed-by: James Smart <james.smart@broadcom.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
This commit is contained in:
parent
5792a0e816
commit
c3e5aac3e2
1 changed files with 1 additions and 2 deletions
|
@ -13464,8 +13464,7 @@ lpfc_sli4_oas_verify(struct lpfc_hba *phba)
|
|||
phba->cfg_fof = 1;
|
||||
} else {
|
||||
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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue