[PATCH 8/8] ethernet: ec_bhf: Remove redundant pci_clear_master

Cai Huoqing
2023-03-23T09:05:39Z

drivers/net/ethernet/ec_bhf.c | 2 --
1 file changed, 2 deletions(-)

diff --git a/drivers/net/ethernet/ec_bhf.c b/drivers/net/ethernet/ec_bhf.c
index 46e3a05e9582..c2c5c589a5e3 100644
--- a/drivers/net/ethernet/ec_bhf.c
+++ b/drivers/net/ethernet/ec_bhf.c
@@ -558,7 +558,6 @@ static int ec_bhf_probe(struct pci_dev *dev, const struct pci_device_id *id)
err_release_regions:
pci_release_regions(dev);
err_disable_dev:
- pci_clear_master(dev);
pci_disable_device(dev);

return err;
@@ -577,7 +576,6 @@ static void ec_bhf_remove(struct pci_dev *dev)
free_netdev(net_dev);

pci_release_regions(dev);
- pci_clear_master(dev);
pci_disable_device(dev);
}

--
2.34.1