]> pilppa.com Git - linux-2.6-omap-h63xx.git/commitdiff
ata: fix sparse warning in libata-core.c
authorHarvey Harrison <harvey.harrison@gmail.com>
Thu, 14 Feb 2008 18:45:23 +0000 (10:45 -0800)
committerJeff Garzik <jeff@garzik.org>
Fri, 15 Feb 2008 18:50:56 +0000 (13:50 -0500)
rc is used to test the return value and possibly return an error.
No need to redeclare inside the loop.

drivers/ata/libata-core.c:7089:7: warning: symbol 'rc' shadows an earlier one
drivers/ata/libata-core.c:7030:9: originally declared here

Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
drivers/ata/libata-core.c

index 004dae4ea5bc63afaa255698bdf6528bba356235..beaa3a9d8b6d8b8c6ee02ac424be460ddbfe2f59 100644 (file)
@@ -7086,7 +7086,6 @@ int ata_host_register(struct ata_host *host, struct scsi_host_template *sht)
        DPRINTK("probe begin\n");
        for (i = 0; i < host->n_ports; i++) {
                struct ata_port *ap = host->ports[i];
-               int rc;
 
                /* probe */
                if (ap->ops->error_handler) {