aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ata/sata_sil24.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ata/sata_sil24.c')
-rw-r--r--drivers/ata/sata_sil24.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/ata/sata_sil24.c b/drivers/ata/sata_sil24.c
index 5d083f43f90d..b1bab82b16de 100644
--- a/drivers/ata/sata_sil24.c
+++ b/drivers/ata/sata_sil24.c
@@ -647,7 +647,6 @@ static inline void sil24_fill_sg(struct ata_queued_cmd *qc,
647 struct sil24_sge *sge) 647 struct sil24_sge *sge)
648{ 648{
649 struct scatterlist *sg; 649 struct scatterlist *sg;
650 unsigned int idx = 0;
651 650
652 ata_for_each_sg(sg, qc) { 651 ata_for_each_sg(sg, qc) {
653 sge->addr = cpu_to_le64(sg_dma_address(sg)); 652 sge->addr = cpu_to_le64(sg_dma_address(sg));
@@ -656,9 +655,7 @@ static inline void sil24_fill_sg(struct ata_queued_cmd *qc,
656 sge->flags = cpu_to_le32(SGE_TRM); 655 sge->flags = cpu_to_le32(SGE_TRM);
657 else 656 else
658 sge->flags = 0; 657 sge->flags = 0;
659
660 sge++; 658 sge++;
661 idx++;
662 } 659 }
663} 660}
664 661