]> asedeno.scripts.mit.edu Git - linux.git/blobdiff - drivers/ata/sata_nv.c
Merge tag 'hsi-for-5.4' of git://git.kernel.org/pub/scm/linux/kernel/git/sre/linux-hsi
[linux.git] / drivers / ata / sata_nv.c
index b44b4b64354c242e990d5bf010b37579dc2456f8..56946012d113a50af4b8bb24628596ac0f55b24d 100644 (file)
@@ -1122,14 +1122,10 @@ static int nv_adma_port_start(struct ata_port *ap)
 
        /*
         * Now that the legacy PRD and padding buffer are allocated we can
-        * try to raise the DMA mask to allocate the CPB/APRD table.
+        * raise the DMA mask to allocate the CPB/APRD table.
         */
-       rc = dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(64));
-       if (rc) {
-               rc = dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(32));
-               if (rc)
-                       return rc;
-       }
+       dma_set_mask_and_coherent(&pdev->dev, DMA_BIT_MASK(64));
+
        pp->adma_dma_mask = *dev->dma_mask;
 
        mem = dmam_alloc_coherent(dev, NV_ADMA_PORT_PRIV_DMA_SZ,