|
@@ -596,8 +596,7 @@ static pci_ers_result_t pcifront_common_process(int cmd,
|
|
pcidev = pci_get_bus_and_slot(bus, devfn);
|
|
pcidev = pci_get_bus_and_slot(bus, devfn);
|
|
if (!pcidev || !pcidev->driver) {
|
|
if (!pcidev || !pcidev->driver) {
|
|
dev_err(&pdev->xdev->dev, "device or AER driver is NULL\n");
|
|
dev_err(&pdev->xdev->dev, "device or AER driver is NULL\n");
|
|
- if (pcidev)
|
|
|
|
- pci_dev_put(pcidev);
|
|
|
|
|
|
+ pci_dev_put(pcidev);
|
|
return result;
|
|
return result;
|
|
}
|
|
}
|
|
pdrv = pcidev->driver;
|
|
pdrv = pcidev->driver;
|