sata_sil24: kill unused local variable idx in sil24_fill_sg()
authorTejun Heo <htejun@gmail.com>
Mon, 26 Feb 2007 07:11:00 +0000 (16:11 +0900)
committerJeff Garzik <jeff@garzik.org>
Fri, 2 Mar 2007 01:16:29 +0000 (20:16 -0500)
Kill unused local variable idx in sil24_fill_sg().

Spotted by Jeff Garzik.

Signed-off-by: Tejun Heo <htejun@gmail.com>
Cc: Jeff Garzik <jeff@garzik.org>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/ata/sata_sil24.c

index 5d083f43f90d19624b6260624c44bd1bb7e2767e..b1bab82b16debfea7543c09878620fd0c2d63ee0 100644 (file)
@@ -647,7 +647,6 @@ static inline void sil24_fill_sg(struct ata_queued_cmd *qc,
                                 struct sil24_sge *sge)
 {
        struct scatterlist *sg;
-       unsigned int idx = 0;
 
        ata_for_each_sg(sg, qc) {
                sge->addr = cpu_to_le64(sg_dma_address(sg));
@@ -656,9 +655,7 @@ static inline void sil24_fill_sg(struct ata_queued_cmd *qc,
                        sge->flags = cpu_to_le32(SGE_TRM);
                else
                        sge->flags = 0;
-
                sge++;
-               idx++;
        }
 }