]> Pileus Git - ~andy/linux/blobdiff - drivers/ide/tx4939ide.c
ide: call ide_build_sglist() prior to ->dma_setup (v2)
[~andy/linux] / drivers / ide / tx4939ide.c
index f0033eb2e8859bfed87e81797203b295af2ea2c0..ee86688d8461d7fe51a7fbc8952dd7610208c068 100644 (file)
@@ -240,10 +240,6 @@ static int tx4939ide_build_dmatable(ide_drive_t *drive, struct request *rq)
        int i;
        struct scatterlist *sg;
 
-       hwif->sg_nents = ide_build_sglist(drive, rq);
-       if (hwif->sg_nents == 0)
-               return 0;
-
        for_each_sg(hwif->sg_table, sg, hwif->sg_nents, i) {
                u32 cur_addr, cur_len, bcount;