diff --git a/ArmPkg/Drivers/TimerDxe/TimerDxe.c b/ArmPkg/Drivers/TimerDxe/TimerDxe.c index dccaeae23c..e4a54596db 100644 --- a/ArmPkg/Drivers/TimerDxe/TimerDxe.c +++ b/ArmPkg/Drivers/TimerDxe/TimerDxe.c @@ -1,7 +1,7 @@ /** @file Timer Architecture Protocol driver of the ARM flavor - Copyright (c) 2011-2013 ARM Ltd. All rights reserved.
+ Copyright (c) 2011-2021, Arm Limited. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent @@ -307,7 +307,7 @@ TimerInterruptHandler ( // Check if the timer interrupt is active if ((ArmGenericTimerGetTimerCtrlReg () ) & ARM_ARCH_TIMER_ISTATUS) { - if (mTimerNotifyFunction) { + if (mTimerNotifyFunction != 0) { mTimerNotifyFunction (mTimerPeriod * mElapsedPeriod); }