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>
This commit is contained in:
Pierre Gondois 2020-10-23 14:35:36 +01:00 committed by mergify[bot]
parent eb97f13839
commit 4c7e107810
1 changed files with 3 additions and 1 deletions

View File

@ -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;