mirror of
https://github.com/patjak/facetimehd.git
synced 2026-04-09 19:10:01 +02:00
bcwc_pcie: Check return value of bcwc_hw_init()
This commit is contained in:
@@ -188,7 +188,8 @@ static int bcwc_pci_probe(struct pci_dev *pdev,
|
|||||||
dev_priv->ddr_model = 4;
|
dev_priv->ddr_model = 4;
|
||||||
dev_priv->ddr_speed = 450;
|
dev_priv->ddr_speed = 450;
|
||||||
|
|
||||||
return bcwc_hw_init(dev_priv);
|
if (!(ret = bcwc_hw_init(dev_priv)))
|
||||||
|
return 0;
|
||||||
fail_msi:
|
fail_msi:
|
||||||
pci_disable_msi(pdev);
|
pci_disable_msi(pdev);
|
||||||
fail_enable:
|
fail_enable:
|
||||||
|
|||||||
Reference in New Issue
Block a user