mirror of https://github.com/acidanthera/audk.git
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 <Pierre.Gondois@arm.com> Reviewed-by: Ard Biesheuvel <ard.biesheuvel@arm.com>
This commit is contained in:
parent
4c7e107810
commit
1485e8bbc8
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue