diff options
Diffstat (limited to 'drivers/ata/sata_via.c')
-rw-r--r-- | drivers/ata/sata_via.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/ata/sata_via.c b/drivers/ata/sata_via.c index 62367fe4d5dc..c18935f0bda2 100644 --- a/drivers/ata/sata_via.c +++ b/drivers/ata/sata_via.c | |||
@@ -602,8 +602,10 @@ static int svia_init_one(struct pci_dev *pdev, const struct pci_device_id *ent) | |||
602 | rc = vt8251_prepare_host(pdev, &host); | 602 | rc = vt8251_prepare_host(pdev, &host); |
603 | break; | 603 | break; |
604 | default: | 604 | default: |
605 | return -EINVAL; | 605 | rc = -EINVAL; |
606 | } | 606 | } |
607 | if (rc) | ||
608 | return rc; | ||
607 | 609 | ||
608 | svia_configure(pdev); | 610 | svia_configure(pdev); |
609 | 611 | ||