Commit acb3f35f authored by Rolf Eike Beer's avatar Rolf Eike Beer Committed by Jakub Kicinski

sunhme: forward the error code from pci_enable_device()

This already returns a proper error value, so pass it to the caller.
Signed-off-by: default avatarRolf Eike Beer <eike-kernel@sf-tec.de>
Signed-off-by: default avatarSean Anderson <seanga2@gmail.com>
Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 6478c6e9
...@@ -2940,11 +2940,11 @@ static int happy_meal_pci_probe(struct pci_dev *pdev, ...@@ -2940,11 +2940,11 @@ static int happy_meal_pci_probe(struct pci_dev *pdev,
strcpy(prom_name, "SUNW,hme"); strcpy(prom_name, "SUNW,hme");
#endif #endif
err = -ENODEV; err = pci_enable_device(pdev);
if (err)
if (pci_enable_device(pdev))
goto err_out; goto err_out;
pci_set_master(pdev); pci_set_master(pdev);
err = -ENODEV;
if (!strcmp(prom_name, "SUNW,qfe") || !strcmp(prom_name, "qfe")) { if (!strcmp(prom_name, "SUNW,qfe") || !strcmp(prom_name, "qfe")) {
qp = quattro_pci_find(pdev); qp = quattro_pci_find(pdev);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment