X-Git-Url: https://git.proxmox.com/?p=mirror_edk2.git;a=blobdiff_plain;f=ArmPlatformPkg%2FDrivers%2FNorFlashDxe%2FNorFlashDxe.c;fp=ArmPlatformPkg%2FDrivers%2FNorFlashDxe%2FNorFlashDxe.c;h=20134094badcb5bee14f66a9c38b8d5bbf68ceaa;hp=b681c4b4668630de8a9585363a328b3e3f1bc324;hb=4c7e107810cacd1dbd4c6f7d6d4d22e3de2f8db1;hpb=eb97f13839fd64ce3e4ff9dd39ea9950db48207d 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;