mirror of https://github.com/acidanthera/audk.git
ArmPkg: Fix Ecc error 5007 in ArmLib
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
b9b86dc4f6
commit
178dbd4442
|
@ -1,7 +1,7 @@
|
||||||
/** @file
|
/** @file
|
||||||
|
|
||||||
Copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>
|
Copyright (c) 2008 - 2009, Apple Inc. All rights reserved.<BR>
|
||||||
Copyright (c) 2011 - 2014, ARM Ltd. All rights reserved.<BR>
|
Copyright (c) 2011 - 2021, ARM Ltd. All rights reserved.<BR>
|
||||||
|
|
||||||
SPDX-License-Identifier: BSD-2-Clause-Patent
|
SPDX-License-Identifier: BSD-2-Clause-Patent
|
||||||
|
|
||||||
|
@ -19,9 +19,7 @@ ArmSetAuxCrBit (
|
||||||
IN UINT32 Bits
|
IN UINT32 Bits
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
UINT32 val = ArmReadAuxCr();
|
ArmWriteAuxCr(ArmReadAuxCr() | Bits);
|
||||||
val |= Bits;
|
|
||||||
ArmWriteAuxCr(val);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
|
@ -30,9 +28,7 @@ ArmUnsetAuxCrBit (
|
||||||
IN UINT32 Bits
|
IN UINT32 Bits
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
UINT32 val = ArmReadAuxCr();
|
ArmWriteAuxCr(ArmReadAuxCr() & ~Bits);
|
||||||
val &= ~Bits;
|
|
||||||
ArmWriteAuxCr(val);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//
|
//
|
||||||
|
@ -45,10 +41,7 @@ ArmSetCpuActlrBit (
|
||||||
IN UINTN Bits
|
IN UINTN Bits
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
UINTN Value;
|
ArmWriteCpuActlr (ArmReadCpuActlr () | Bits);
|
||||||
Value = ArmReadCpuActlr ();
|
|
||||||
Value |= Bits;
|
|
||||||
ArmWriteCpuActlr (Value);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
VOID
|
VOID
|
||||||
|
@ -57,10 +50,7 @@ ArmUnsetCpuActlrBit (
|
||||||
IN UINTN Bits
|
IN UINTN Bits
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
UINTN Value;
|
ArmWriteCpuActlr (ArmReadCpuActlr () & ~Bits);
|
||||||
Value = ArmReadCpuActlr ();
|
|
||||||
Value &= ~Bits;
|
|
||||||
ArmWriteCpuActlr (Value);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
UINTN
|
UINTN
|
||||||
|
|
Loading…
Reference in New Issue