Skip to contentSkip to conversation

ata: fix sparse warning in ata_piix.c

PATCH NAK Harvey Harrison 2 participants 2 messages Feb 14, 2008 – Feb 15, 2008 libata

lore
Share & tools
lore
#0 lore raw

PATCH 1/11 ata: fix sparse warning in ata_piix.c

drivers/ata/ata_piix.c:1655:8: warning: symbol 'rc' shadows an earlier one drivers/ata/ata_piix.c:1616:6: originally declared here

---
 drivers/ata/ata_piix.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/ata/ata_piix.c +1 -1
index 9c2515f..752e7d2 100644
@@ -1652,7 +1652,7 @@ static int __devinit piix_init_one(struct pci_dev *pdev,
 		u8 tmp;
 		pci_read_config_byte(pdev, PIIX_SCC, &tmp);
 		if (tmp == PIIX_AHCI_DEVICE) {
-			int rc = piix_disable_ahci(pdev);
+			rc = piix_disable_ahci(pdev);
 			if (rc)
 				return rc;
 		}
Signature · 1 line
1.5.4.1.1278.gc75be
#1 lore raw
Quoted 7 lines · Harvey Harrison

drivers/ata/ata_piix.c:1655:8: warning: symbol 'rc' shadows an earlier one drivers/ata/ata_piix.c:1616:6: originally declared here

---
 drivers/ata/ata_piix.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

applied 1-4