]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
ata: fix sparse warning in sata_promise.c
authorHarvey Harrison <harvey.harrison@gmail.com>
Thu, 14 Feb 2008 05:14:08 +0000 (21:14 -0800)
committerJeff Garzik <jeff@garzik.org>
Fri, 15 Feb 2008 18:50:59 +0000 (13:50 -0500)
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>
drivers/ata/sata_promise.c

index a07d319f6e8cc1d6e2b42d12c5d7d3c6105e7d4a..f251a5f569d52403c8fa246848a0f7ff88d63e5b 100644 (file)
@@ -543,7 +543,7 @@ static void pdc_fill_sg(struct ata_queued_cmd *qc)
        idx = 0;
        for_each_sg(qc->sg, sg, qc->n_elem, si) {
                u32 addr, offset;
-               u32 sg_len, len;
+               u32 sg_len;
 
                /* determine if physical DMA addr spans 64K boundary.
                 * Note h/w doesn't support 64-bit, so we unconditionally