bcwc_pcie: Check return value of bcwc_hw_init()

This commit is contained in:
Sven Schnelle
2015-10-26 21:20:19 +01:00
parent 6966bb66d6
commit ee3d53047d

View File

@@ -188,7 +188,8 @@ static int bcwc_pci_probe(struct pci_dev *pdev,
dev_priv->ddr_model = 4;
dev_priv->ddr_speed = 450;
return bcwc_hw_init(dev_priv);
if (!(ret = bcwc_hw_init(dev_priv)))
return 0;
fail_msi:
pci_disable_msi(pdev);
fail_enable: