diff options
author | Harvey Harrison <harvey.harrison@gmail.com> | 2008-02-14 19:45:23 +0100 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2008-02-15 19:50:56 +0100 |
commit | eeb37ac87459f8e86d53243bd97e0c086de7eb87 (patch) | |
tree | 798c9d04e2d3303cc5d12b64a1b8a13a0f317aad /drivers/ata | |
parent | ata: make ata_scsiop_inq_89 static in libata-scsi.c (diff) | |
download | linux-eeb37ac87459f8e86d53243bd97e0c086de7eb87.tar.xz linux-eeb37ac87459f8e86d53243bd97e0c086de7eb87.zip |
ata: fix sparse warning in libata-core.c
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>
Diffstat (limited to 'drivers/ata')
-rw-r--r-- | drivers/ata/libata-core.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c index 004dae4ea5bc..beaa3a9d8b6d 100644 --- a/drivers/ata/libata-core.c +++ b/drivers/ata/libata-core.c @@ -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) { |