diff options
author | Harvey Harrison <harvey.harrison@gmail.com> | 2008-02-14 00:14:08 -0500 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2008-02-15 13:50:59 -0500 |
commit | 6903c0f7efe907ada1b9636b52c5ae11fd51ab68 (patch) | |
tree | 4bf8744af5360c44ab4f484c3de715b5250126e8 /drivers/ata/sata_promise.c | |
parent | 018d982721209241ede1180aa795d68833c26b10 (diff) |
ata: fix sparse warning in sata_promise.c
drivers/ata/sata_promise.c:546:15: warning: symbol 'len' shadows an earlier one
drivers/ata/sata_promise.c:538:6: originally declared here
len is set again immediately after the loop, so this is safe.
Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/ata/sata_promise.c')
-rw-r--r-- | drivers/ata/sata_promise.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ata/sata_promise.c b/drivers/ata/sata_promise.c index a07d319f6e8c..f251a5f569d5 100644 --- a/drivers/ata/sata_promise.c +++ b/drivers/ata/sata_promise.c | |||
@@ -543,7 +543,7 @@ static void pdc_fill_sg(struct ata_queued_cmd *qc) | |||
543 | idx = 0; | 543 | idx = 0; |
544 | for_each_sg(qc->sg, sg, qc->n_elem, si) { | 544 | for_each_sg(qc->sg, sg, qc->n_elem, si) { |
545 | u32 addr, offset; | 545 | u32 addr, offset; |
546 | u32 sg_len, len; | 546 | u32 sg_len; |
547 | 547 | ||
548 | /* determine if physical DMA addr spans 64K boundary. | 548 | /* determine if physical DMA addr spans 64K boundary. |
549 | * Note h/w doesn't support 64-bit, so we unconditionally | 549 | * Note h/w doesn't support 64-bit, so we unconditionally |