summaryrefslogtreecommitdiffstats
path: root/ArmPlatformPkg/Drivers
diff options
context:
space:
mode:
authorPierre Gondois <Pierre.Gondois@arm.com>2020-10-23 14:35:36 +0100
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>2020-12-09 15:32:12 +0000
commit4c7e107810cacd1dbd4c6f7d6d4d22e3de2f8db1 (patch)
tree745b19ba43b5bbfcd8523a47135e802c5e24ca33 /ArmPlatformPkg/Drivers
parenteb97f13839fd64ce3e4ff9dd39ea9950db48207d (diff)
downloadedk2-4c7e107810cacd1dbd4c6f7d6d4d22e3de2f8db1.tar.gz
edk2-4c7e107810cacd1dbd4c6f7d6d4d22e3de2f8db1.tar.bz2
edk2-4c7e107810cacd1dbd4c6f7d6d4d22e3de2f8db1.zip
ArmPlatformPkg: Fix Ecc error 5007 in NorFlashDxe
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>
Diffstat (limited to 'ArmPlatformPkg/Drivers')
-rw-r--r--ArmPlatformPkg/Drivers/NorFlashDxe/NorFlashDxe.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/ArmPlatformPkg/Drivers/NorFlashDxe/NorFlashDxe.c b/ArmPlatformPkg/Drivers/NorFlashDxe/NorFlashDxe.c
index b681c4b466..20134094ba 100644
--- a/ArmPlatformPkg/Drivers/NorFlashDxe/NorFlashDxe.c
+++ b/ArmPlatformPkg/Drivers/NorFlashDxe/NorFlashDxe.c
@@ -676,12 +676,14 @@ NorFlashWriteBlocks (
)
{
UINT32 *pWriteBuffer;
- EFI_STATUS Status = EFI_SUCCESS;
+ EFI_STATUS Status;
EFI_LBA CurrentBlock;
UINT32 BlockSizeInWords;
UINT32 NumBlocks;
UINT32 BlockCount;
+ Status = EFI_SUCCESS;
+
// The buffer must be valid
if (Buffer == NULL) {
return EFI_INVALID_PARAMETER;