scsi: lpfc: Fix NULL check before mempool_destroy is not needed
A message that is not in the archive (sent off-list or not yet received): 20191026194712.GA22249@saurav
James Smart
Reviewed-byQuoted 13 lines · Saurav Girepunje
mempool_destroyhas taken null pointer check into account. so remove the redundant check.Signed-off-by Saurav Girepunje <[email protected]>--- drivers/scsi/lpfc/lpfc_init.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)drivers/scsi/lpfc/lpfc_init.c +0
-0
drivers/scsi/lpfc/lpfc_init.c lpfc_sli4_oas_verify(struct lpfc_hba *phba) · line 13352
Quoted 9 lines
drivers/scsi/lpfc/lpfc_init.c +1
-2@@ -13346,8 +13346,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 ; }
Looks fine.
Thanks
Reviewed-by James Smart <[email protected]>
-- james
Martin K. Petersen
AppliedSaurav,
Quoted 2 lines
mempool_destroyhas taken null pointer check into account. so remove the redundant check.
Applied to 5.5/scsi-queue, thanks!
Signature · 1 line
Martin K. Petersen Oracle Linux Engineering