ide: call ide_build_sglist() prior to ->dma_setup (v2)
[firefly-linux-kernel-4.4.55.git] / drivers / ide / icside.c
index cf0522f937c1c42b6a508bf2a6c1adcf753f4f97..78fc36f98d294369729c4300f978ff0e9a56c662 100644 (file)
@@ -325,12 +325,6 @@ static int icside_dma_setup(ide_drive_t *drive)
         */
        BUG_ON(dma_channel_active(ec->dma));
 
-       hwif->sg_nents = ide_build_sglist(drive, rq);
-       if (hwif->sg_nents == 0) {
-               ide_map_sg(drive, rq);
-               return 1;
-       }
-
        /*
         * Ensure that we have the right interrupt routed.
         */