IOSimpleReporter*
IOSimpleReporter::with(IOService *reportingService,
IOReportCategories categories,
- IOReportUnits unit)
+ IOReportUnit unit)
{
IOSimpleReporter *reporter, *rval = NULL;
finish:
if (!rval) {
- if (reporter) delete reporter;
+ OSSafeReleaseNULL(reporter);
}
return rval;
bool
IOSimpleReporter::initWith(IOService *reportingService,
IOReportCategories categories,
- IOReportUnits unit)
+ IOReportUnit unit)
{
// fully specify the channel type for the superclass
IOReportChannelType channelType = {