aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarvey Harrison <harvey.harrison@gmail.com>2008-02-14 13:45:23 -0500
committerJeff Garzik <jeff@garzik.org>2008-02-15 13:50:56 -0500
commiteeb37ac87459f8e86d53243bd97e0c086de7eb87 (patch)
tree798c9d04e2d3303cc5d12b64a1b8a13a0f317aad
parent08f01058fe8fcf0d4d69d96d667c51d52859b31d (diff)
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>
-rw-r--r--drivers/ata/libata-core.c1
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)
7086 DPRINTK("probe begin\n"); 7086 DPRINTK("probe begin\n");
7087 for (i = 0; i < host->n_ports; i++) { 7087 for (i = 0; i < host->n_ports; i++) {
7088 struct ata_port *ap = host->ports[i]; 7088 struct ata_port *ap = host->ports[i];
7089 int rc;
7090 7089
7091 /* probe */ 7090 /* probe */
7092 if (ap->ops->error_handler) { 7091 if (ap->ops->error_handler) {