From 1485e8bbc86e9a7e1954cfe5697fbd45d8e3b04e Mon Sep 17 00:00:00 2001 From: Pierre Gondois Date: Fri, 23 Oct 2020 14:36:01 +0100 Subject: [PATCH] ArmPlatformPkg: Fix Ecc error 5007 in PL061GpioDxe 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/Drivers/PL061GpioDxe/PL061Gpio.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ArmPlatformPkg/Drivers/PL061GpioDxe/PL061Gpio.c b/ArmPlatformPkg/Drivers/PL061GpioDxe/PL061Gpio.c index 020d8c9fd9..be0e1c0963 100644 --- a/ArmPlatformPkg/Drivers/PL061GpioDxe/PL061Gpio.c +++ b/ArmPlatformPkg/Drivers/PL061GpioDxe/PL061Gpio.c @@ -171,7 +171,7 @@ Get ( OUT UINTN *Value ) { - EFI_STATUS Status = EFI_SUCCESS; + EFI_STATUS Status; UINTN Index, Offset, RegisterBase; Status = PL061Locate (Gpio, &Index, &Offset, &RegisterBase); @@ -216,7 +216,7 @@ Set ( IN EMBEDDED_GPIO_MODE Mode ) { - EFI_STATUS Status = EFI_SUCCESS; + EFI_STATUS Status; UINTN Index, Offset, RegisterBase; Status = PL061Locate (Gpio, &Index, &Offset, &RegisterBase); @@ -278,7 +278,7 @@ GetMode ( OUT EMBEDDED_GPIO_MODE *Mode ) { - EFI_STATUS Status = EFI_SUCCESS; + EFI_STATUS Status; UINTN Index, Offset, RegisterBase; Status = PL061Locate (Gpio, &Index, &Offset, &RegisterBase);