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 Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com> Signed-off-by: Jeff Garzik <jeff@garzik.org>
This commit is contained in:
committed by
Jeff Garzik
parent
eeb37ac874
commit
018d982721
@@ -1652,7 +1652,7 @@ static int __devinit piix_init_one(struct pci_dev *pdev,
|
|||||||
u8 tmp;
|
u8 tmp;
|
||||||
pci_read_config_byte(pdev, PIIX_SCC, &tmp);
|
pci_read_config_byte(pdev, PIIX_SCC, &tmp);
|
||||||
if (tmp == PIIX_AHCI_DEVICE) {
|
if (tmp == PIIX_AHCI_DEVICE) {
|
||||||
int rc = piix_disable_ahci(pdev);
|
rc = piix_disable_ahci(pdev);
|
||||||
if (rc)
|
if (rc)
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user