mirror of
https://github.com/ipxe/ipxe
synced 2025-12-30 22:08:48 +03:00
[netdevice] Call netdev_link_[up|down|err]() only while registered
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -248,8 +248,6 @@ static int atl1e_sw_init(struct atl1e_adapter *adapter)
|
||||
hw->dmar_block = atl1e_dma_req_1024;
|
||||
hw->dmaw_block = atl1e_dma_req_1024;
|
||||
|
||||
netdev_link_down(adapter->netdev);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
@@ -1212,8 +1210,6 @@ static int atl1e_probe(struct pci_device *pdev,
|
||||
goto err_free_netdev;
|
||||
}
|
||||
|
||||
netdev_link_down(netdev);
|
||||
|
||||
cards_found++;
|
||||
return 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user