Skip to content

Commit e07c168

Browse files
committed
Use the fWorkLoop from base
1 parent 9f0fff0 commit e07c168

File tree

1 file changed

+2
-16
lines changed

1 file changed

+2
-16
lines changed

AirportItlwm/AirportItlwm.cpp

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -368,6 +368,7 @@ bool AirportItlwm::start(IOService *provider)
368368
super::stop(pciNub);
369369
return false;
370370
}
371+
_fWorkloop = OSDynamicCast(IO80211WorkLoop, getWorkLoop());
371372
if (_fWorkloop == NULL) {
372373
XYLog("No _fWorkloop!!\n");
373374
super::stop(pciNub);
@@ -482,21 +483,6 @@ bool AirportItlwm::initPCIPowerManagment(IOPCIDevice *provider)
482483
return true;
483484
}
484485

485-
bool AirportItlwm::createWorkLoop()
486-
{
487-
_fWorkloop = nullptr;
488-
if (super::createWorkLoop())
489-
{
490-
_fWorkloop = OSDynamicCast(IO80211WorkLoop, super::getWorkLoop());
491-
}
492-
return _fWorkloop != nullptr;
493-
}
494-
495-
IOWorkLoop *AirportItlwm::getWorkLoop() const
496-
{
497-
return _fWorkloop;
498-
}
499-
500486
IOReturn AirportItlwm::selectMedium(const IONetworkMedium *medium)
501487
{
502488
setSelectedMedium(medium);
@@ -587,7 +573,7 @@ void AirportItlwm::releaseAll()
587573
fWatchdogWorkLoop->release();
588574
fWatchdogWorkLoop = NULL;
589575
}
590-
_fWorkloop->release();
576+
// _fWorkloop->release();
591577
_fWorkloop = NULL;
592578
}
593579
unregistPM();

0 commit comments

Comments
 (0)