diff options
author | Pierre Gondois <Pierre.Gondois@arm.com> | 2020-12-10 13:12:36 +0000 |
---|---|---|
committer | mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> | 2021-01-06 16:22:54 +0000 |
commit | 146af6a45b4eb5c0a0dcd1239a7b28599a79db5c (patch) | |
tree | f176b04617d6c605734ac33b338acd946e7539ac | |
parent | 178dbd4442827d179e5800a19d60c3f5c03583ab (diff) | |
download | edk2-146af6a45b4eb5c0a0dcd1239a7b28599a79db5c.tar.gz edk2-146af6a45b4eb5c0a0dcd1239a7b28599a79db5c.tar.bz2 edk2-146af6a45b4eb5c0a0dcd1239a7b28599a79db5c.zip |
ArmPkg: Fix Ecc error 5007 in ArmMmuLib
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>
-rw-r--r-- | ArmPkg/Library/ArmMmuLib/Arm/ArmMmuLibUpdate.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ArmPkg/Library/ArmMmuLib/Arm/ArmMmuLibUpdate.c b/ArmPkg/Library/ArmMmuLib/Arm/ArmMmuLibUpdate.c index 34ba691d9d..940e4bc797 100644 --- a/ArmPkg/Library/ArmMmuLib/Arm/ArmMmuLibUpdate.c +++ b/ArmPkg/Library/ArmMmuLib/Arm/ArmMmuLibUpdate.c @@ -220,7 +220,7 @@ UpdateSectionEntries ( IN UINT64 Attributes
)
{
- EFI_STATUS Status = EFI_SUCCESS;
+ EFI_STATUS Status;
UINT32 EntryMask;
UINT32 EntryValue;
UINT32 FirstLevelIdx;
@@ -231,6 +231,8 @@ UpdateSectionEntries ( VOID *Mva;
volatile ARM_FIRST_LEVEL_DESCRIPTOR *FirstLevelTable;
+ Status = EFI_SUCCESS;
+
// EntryMask: bitmask of values to change (1 = change this value, 0 = leave alone)
// EntryValue: values at bit positions specified by EntryMask
|