mirror of https://github.com/acidanthera/audk.git
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:
parent
eb97f13839
commit
4c7e107810
|
@ -676,12 +676,14 @@ NorFlashWriteBlocks (
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
UINT32 *pWriteBuffer;
|
UINT32 *pWriteBuffer;
|
||||||
EFI_STATUS Status = EFI_SUCCESS;
|
EFI_STATUS Status;
|
||||||
EFI_LBA CurrentBlock;
|
EFI_LBA CurrentBlock;
|
||||||
UINT32 BlockSizeInWords;
|
UINT32 BlockSizeInWords;
|
||||||
UINT32 NumBlocks;
|
UINT32 NumBlocks;
|
||||||
UINT32 BlockCount;
|
UINT32 BlockCount;
|
||||||
|
|
||||||
|
Status = EFI_SUCCESS;
|
||||||
|
|
||||||
// The buffer must be valid
|
// The buffer must be valid
|
||||||
if (Buffer == NULL) {
|
if (Buffer == NULL) {
|
||||||
return EFI_INVALID_PARAMETER;
|
return EFI_INVALID_PARAMETER;
|
||||||
|
|
Loading…
Reference in New Issue