mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Fix a mismerge in r206001.
PR: 146614 Approved by: jfv (implicit) MFC afer: 3 days
This commit is contained in:
parent
18bd63b7c5
commit
876ab8b5e4
1 changed files with 3 additions and 3 deletions
|
|
@ -710,6 +710,9 @@ em_detach(device_t dev)
|
|||
ether_poll_deregister(ifp);
|
||||
#endif
|
||||
|
||||
if (adapter->led_dev != NULL)
|
||||
led_destroy(adapter->led_dev);
|
||||
|
||||
EM_CORE_LOCK(adapter);
|
||||
adapter->in_detach = 1;
|
||||
em_stop(adapter);
|
||||
|
|
@ -779,9 +782,6 @@ em_resume(device_t dev)
|
|||
struct adapter *adapter = device_get_softc(dev);
|
||||
struct ifnet *ifp = adapter->ifp;
|
||||
|
||||
if (adapter->led_dev != NULL)
|
||||
led_destroy(adapter->led_dev);
|
||||
|
||||
EM_CORE_LOCK(adapter);
|
||||
em_init_locked(adapter);
|
||||
em_init_manageability(adapter);
|
||||
|
|
|
|||
Loading…
Reference in a new issue