From fd5c9bedbc0e49aefd9ee36abe11701c773b602e Mon Sep 17 00:00:00 2001 From: Pierre Gondois Date: Thu, 10 Dec 2020 13:08:14 +0000 Subject: ArmPkg: Fix Ecc error 5007 in TimerDxe This patch fixes the following Ecc reported error: There should be no initialization of a variable as part of its declaration Signed-off-by: Pierre Gondois Reviewed-by: Ard Biesheuvel --- ArmPkg/Drivers/TimerDxe/TimerDxe.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'ArmPkg') diff --git a/ArmPkg/Drivers/TimerDxe/TimerDxe.c b/ArmPkg/Drivers/TimerDxe/TimerDxe.c index e4a54596db..0370620fae 100644 --- a/ArmPkg/Drivers/TimerDxe/TimerDxe.c +++ b/ArmPkg/Drivers/TimerDxe/TimerDxe.c @@ -359,7 +359,7 @@ TimerInitialize ( IN EFI_SYSTEM_TABLE *SystemTable ) { - EFI_HANDLE Handle = NULL; + EFI_HANDLE Handle; EFI_STATUS Status; UINTN TimerCtrlReg; UINT32 TimerHypIntrNum; @@ -408,6 +408,7 @@ TimerInitialize ( Status = TimerDriverSetTimerPeriod (&gTimer, FixedPcdGet32(PcdTimerPeriod)); // TIMER_DEFAULT_PERIOD ASSERT_EFI_ERROR (Status); + Handle = NULL; // Install the Timer Architectural Protocol onto a new handle Status = gBS->InstallMultipleProtocolInterfaces( &Handle, -- cgit v1.2.3