mirror of https://github.com/acidanthera/audk.git
ArmPlatformPkg/NorFlashDxe: Fix checking of return value of NorFlashWriteBlocks()
Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Roy Franz <roy.franz@linaro.org> Reviewed-by: Olivier Martin <olivier.martin@arm.com> git-svn-id: https://svn.code.sf.net/p/edk2/code/trunk/edk2@14792 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
parent
9318b08eb5
commit
ae26789a50
|
@ -608,7 +608,7 @@ FvbWrite (
|
||||||
CopyMem((BlockBuffer + Offset), Buffer, *NumBytes);
|
CopyMem((BlockBuffer + Offset), Buffer, *NumBytes);
|
||||||
|
|
||||||
// Write the modified buffer back to the NorFlash
|
// Write the modified buffer back to the NorFlash
|
||||||
Status = NorFlashWriteBlocks (Instance, Instance->StartLba + Lba, BlockSize, BlockBuffer);
|
TempStatus = NorFlashWriteBlocks (Instance, Instance->StartLba + Lba, BlockSize, BlockBuffer);
|
||||||
if (EFI_ERROR (TempStatus)) {
|
if (EFI_ERROR (TempStatus)) {
|
||||||
// Return one of the pre-approved error statuses
|
// Return one of the pre-approved error statuses
|
||||||
Status = EFI_DEVICE_ERROR;
|
Status = EFI_DEVICE_ERROR;
|
||||||
|
|
Loading…
Reference in New Issue