* [PATCH] sata_sil24: kill unused local variable idx in sil24_fill_sg()
@ 2007-02-26 7:11 Tejun Heo
2007-03-02 1:16 ` Jeff Garzik
0 siblings, 1 reply; 2+ messages in thread
From: Tejun Heo @ 2007-02-26 7:11 UTC (permalink / raw)
To: Jeff Garzik, linux-ide
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>
diff --git a/drivers/ata/sata_sil24.c b/drivers/ata/sata_sil24.c
index e65e8d5..06413e8 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,
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++;
}
}
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] sata_sil24: kill unused local variable idx in sil24_fill_sg()
2007-02-26 7:11 [PATCH] sata_sil24: kill unused local variable idx in sil24_fill_sg() Tejun Heo
@ 2007-03-02 1:16 ` Jeff Garzik
0 siblings, 0 replies; 2+ messages in thread
From: Jeff Garzik @ 2007-03-02 1:16 UTC (permalink / raw)
To: Tejun Heo; +Cc: linux-ide
Tejun Heo wrote:
> 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>
applied
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-03-02 1:16 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-02-26 7:11 [PATCH] sata_sil24: kill unused local variable idx in sil24_fill_sg() Tejun Heo
2007-03-02 1:16 ` Jeff Garzik
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).