Skip to contentSkip to conversation

ata: duplicate variable sparse warning

PATCH Applied Stephen Hemminger 3 participants 3 messages Sep 8, 2008 – Sep 13, 2008 libata

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ata: duplicate variable sparse warning

drivers/ata/ata_piix.c:1502:7: warning: symbol 'rc' shadows an earlier one

drivers/ata/ata_piix.c +1 -1
@@ -1499,7 +1499,7 @@ static int __devinit piix_init_one(struc
 	 * off.
 	 */
 	if (pdev->vendor == PCI_VENDOR_ID_INTEL && pdev->device == 0x2652) {
-		int rc = piix_disable_ahci(pdev);
+		rc = piix_disable_ahci(pdev);
 		if (rc)
 			return rc;
 	}
Applied
#2 lore raw
In reply to Stephen Hemminger
Quoted 7 lines · Stephen Hemminger

drivers/ata/ata_piix.c:1502:7: warning: symbol 'rc' shadows an earlier one

drivers/ata/ata_piix.c static int __devinit piix_init_one(struc · line 1504

Quoted 7 lines
drivers/ata/ata_piix.c +1 -1
@@ -1499,7 +1499,7 @@ static int __devinit piix_init_one(struc
 	 * off.
 	 */
 	if (pdev->vendor == PCI_VENDOR_ID_INTEL && pdev->device == 0x2652) {
-		int rc = piix_disable_ahci(pdev);
+		rc = piix_disable_ahci(pdev);
 		if (rc)
 			return rc;

applied