ata: duplicate variable sparse warning
authorStephen Hemminger <shemminger@vyatta.com>
Mon, 8 Sep 2008 16:31:39 +0000 (09:31 -0700)
committerJeff Garzik <jgarzik@redhat.com>
Sat, 13 Sep 2008 20:43:18 +0000 (16:43 -0400)
drivers/ata/ata_piix.c:1502:7: warning: symbol 'rc' shadows an earlier one

Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/ata/ata_piix.c

index b1d08a8f50030da3bb5d6a74726b5a72fdffe24b..e6b4606e36b68a51448d73b755aab75d91e0fa80 100644 (file)
@@ -1499,7 +1499,7 @@ static int __devinit piix_init_one(struct pci_dev *pdev,
         * 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;
        }