Loading...
--- xnu/xnu-4570.41.2/iokit/Kernel/IOStateReporter.cpp
+++ xnu/xnu-2782.1.97/iokit/Kernel/IOStateReporter.cpp
@@ -40,7 +40,7 @@
IOStateReporter::with(IOService *reportingService,
IOReportCategories categories,
int nstates,
- IOReportUnit unit/* = kIOReportUnitHWTicks*/)
+ IOReportUnits unit/* = kIOReportUnitHWTicks*/)
{
IOStateReporter *reporter, *rval = NULL;
@@ -58,7 +58,7 @@
finish:
if (!rval) {
- OSSafeReleaseNULL(reporter);
+ if (reporter) delete reporter;
}
return rval;
@@ -68,7 +68,7 @@
IOStateReporter::initWith(IOService *reportingService,
IOReportCategories categories,
int16_t nstates,
- IOReportUnit unit)
+ IOReportUnits unit)
{
bool success = false;
@@ -778,7 +778,6 @@
break;
case kLastTransitionTime:
result = values->last_intransition;
- break;
default:
break;
}