Skip to content

Commit 3a7af34

Browse files
emuslndavem330
authored andcommitted
ionic: remove dead device fail path
Remove the probe error path code that leaves the driver bound to the device, but with essentially a dead device. This was useful maybe twice early in the driver's life and no longer makes sense to keep. Fixes: 30a1e6d ("ionic: keep ionic dev on lif init fail") Signed-off-by: Shannon Nelson <shannon.nelson@amd.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent abfb2a5 commit 3a7af34

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

drivers/net/ethernet/pensando/ionic/ionic_bus_pci.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -353,12 +353,6 @@ static int ionic_probe(struct pci_dev *pdev, const struct pci_device_id *ent)
353353
ionic_reset(ionic);
354354
err_out_teardown:
355355
ionic_dev_teardown(ionic);
356-
pci_clear_master(pdev);
357-
/* Don't fail the probe for these errors, keep
358-
* the hw interface around for inspection
359-
*/
360-
return 0;
361-
362356
err_out_unmap_bars:
363357
ionic_unmap_bars(ionic);
364358
err_out_pci_release_regions:

0 commit comments

Comments
 (0)