summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Hemminger <shemminger@vyatta.com>2008-09-08 09:31:39 -0700
committerJeff Garzik <jgarzik@redhat.com>2008-09-13 16:43:18 -0400
commitda3ceb2288d0b50373b69d57a81c34fdd7cd11aa (patch)
tree200239cbee46877068e2f30fa21098d1afa342f8
parenta551b98d5f6fce5897d497abd8bfb262efb33d2a (diff)
downloadlinux-da3ceb2288d0b50373b69d57a81c34fdd7cd11aa.tar.gz
linux-da3ceb2288d0b50373b69d57a81c34fdd7cd11aa.tar.bz2
linux-da3ceb2288d0b50373b69d57a81c34fdd7cd11aa.zip
ata: duplicate variable sparse warning
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>
-rw-r--r--drivers/ata/ata_piix.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ata/ata_piix.c b/drivers/ata/ata_piix.c
index b1d08a8f5003..e6b4606e36b6 100644
--- a/drivers/ata/ata_piix.c
+++ b/drivers/ata/ata_piix.c
@@ -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;
}