diff --git a/src/libraries/System.ServiceProcess.ServiceController/src/System/ServiceProcess/ServiceBase.cs b/src/libraries/System.ServiceProcess.ServiceController/src/System/ServiceProcess/ServiceBase.cs index 72f07e971004e..72dc9983b6231 100644 --- a/src/libraries/System.ServiceProcess.ServiceController/src/System/ServiceProcess/ServiceBase.cs +++ b/src/libraries/System.ServiceProcess.ServiceController/src/System/ServiceProcess/ServiceBase.cs @@ -473,8 +473,7 @@ private void DeferredPowerEvent(int eventType, IntPtr eventData) // already been freed. try { - PowerBroadcastStatus status = (PowerBroadcastStatus)eventType; - bool statusResult = OnPowerEvent(status); + OnPowerEvent((PowerBroadcastStatus)eventType); WriteLogEntry(SR.PowerEventOK); }