mirror of
https://github.com/edk2-porting/linux-next.git
synced 2025-01-19 02:54:00 +08:00
sata_sil24: kill unused local variable idx in sil24_fill_sg()
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>
This commit is contained in:
parent
1aa56cca5b
commit
4fc00cb4d5
@ -647,7 +647,6 @@ static inline void sil24_fill_sg(struct ata_queued_cmd *qc,
|
|||||||
struct sil24_sge *sge)
|
struct sil24_sge *sge)
|
||||||
{
|
{
|
||||||
struct scatterlist *sg;
|
struct scatterlist *sg;
|
||||||
unsigned int idx = 0;
|
|
||||||
|
|
||||||
ata_for_each_sg(sg, qc) {
|
ata_for_each_sg(sg, qc) {
|
||||||
sge->addr = cpu_to_le64(sg_dma_address(sg));
|
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);
|
sge->flags = cpu_to_le32(SGE_TRM);
|
||||||
else
|
else
|
||||||
sge->flags = 0;
|
sge->flags = 0;
|
||||||
|
|
||||||
sge++;
|
sge++;
|
||||||
idx++;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user