]> git.proxmox.com Git - mirror_edk2.git/blobdiff - ArmPkg/Drivers/TimerDxe/TimerDxe.c
ArmPkg: Fix Ecc error 3002 in TimerDxe
[mirror_edk2.git] / ArmPkg / Drivers / TimerDxe / TimerDxe.c
index dccaeae23c29dd234ecb193ea8e95fa82e0d4959..e4a54596db2cb0f0cda22d2793ba665df151f146 100644 (file)
@@ -1,7 +1,7 @@
 /** @file\r
   Timer Architecture Protocol driver of the ARM flavor\r
 \r
-  Copyright (c) 2011-2013 ARM Ltd. All rights reserved.<BR>\r
+  Copyright (c) 2011-2021, Arm Limited. All rights reserved.<BR>\r
 \r
   SPDX-License-Identifier: BSD-2-Clause-Patent\r
 \r
@@ -307,7 +307,7 @@ TimerInterruptHandler (
   // Check if the timer interrupt is active\r
   if ((ArmGenericTimerGetTimerCtrlReg () ) & ARM_ARCH_TIMER_ISTATUS) {\r
 \r
-    if (mTimerNotifyFunction) {\r
+    if (mTimerNotifyFunction != 0) {\r
       mTimerNotifyFunction (mTimerPeriod * mElapsedPeriod);\r
     }\r
 \r