@@ -9187,8 +9187,6 @@ lpfc_sli_pci_mem_setup(struct lpfc_hba *phba)
/* Set the device DMA mask size */
error = dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(64));
- if (error)
- error = dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(32));
if (error)
return error;
error = -ENODEV;
@@ -11714,8 +11712,6 @@ lpfc_sli4_pci_mem_setup(struct lpfc_hba *phba)
/* Set the device DMA mask size */
error = dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(64));
- if (error)
- error = dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(32));
if (error)
return error;