From 28978df0bdafce1d26ff337fd67ee6c3a5b3876e Mon Sep 17 00:00:00 2001 From: Pierre Gondois Date: Fri, 23 Oct 2020 14:36:19 +0100 Subject: ArmPlatformPkg: Fix Ecc error 5007 in PL031RealTimeClockLib 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 --- ArmPlatformPkg/Library/PL031RealTimeClockLib/PL031RealTimeClockLib.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'ArmPlatformPkg') diff --git a/ArmPlatformPkg/Library/PL031RealTimeClockLib/PL031RealTimeClockLib.c b/ArmPlatformPkg/Library/PL031RealTimeClockLib/PL031RealTimeClockLib.c index 75c95985d4..0df4ceb1cb 100644 --- a/ArmPlatformPkg/Library/PL031RealTimeClockLib/PL031RealTimeClockLib.c +++ b/ArmPlatformPkg/Library/PL031RealTimeClockLib/PL031RealTimeClockLib.c @@ -2,7 +2,7 @@ Implement EFI RealTimeClock runtime services via RTC Lib. Copyright (c) 2008 - 2010, Apple Inc. All rights reserved.
- Copyright (c) 2011 - 2014, ARM Ltd. All rights reserved.
+ Copyright (c) 2011 - 2020, Arm Limited. All rights reserved.
Copyright (c) 2019, Linaro Ltd. All rights reserved.
SPDX-License-Identifier: BSD-2-Clause-Patent @@ -121,7 +121,7 @@ LibGetTime ( OUT EFI_TIME_CAPABILITIES *Capabilities ) { - EFI_STATUS Status = EFI_SUCCESS; + EFI_STATUS Status; UINT32 EpochSeconds; // Ensure Time is a valid pointer -- cgit v1.2.3