projects
/
linux-2.6-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1aa56cc
)
sata_sil24: kill unused local variable idx in sil24_fill_sg()
author
Tejun Heo
<htejun@gmail.com>
Mon, 26 Feb 2007 07:11:00 +0000
(16:11 +0900)
committer
Jeff 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
patch
|
blob
|
blame
|
history
diff --git
a/drivers/ata/sata_sil24.c
b/drivers/ata/sata_sil24.c
index 5d083f43f90d19624b6260624c44bd1bb7e2767e..b1bab82b16debfea7543c09878620fd0c2d63ee0 100644
(file)
--- 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++;
}
}