Revision: 14792
          http://sourceforge.net/p/edk2/code/14792
Author:   oliviermartin
Date:     2013-10-21 10:29:56 +0000 (Mon, 21 Oct 2013)
Log Message:
-----------
ArmPlatformPkg/NorFlashDxe: Fix checking of return value of 
NorFlashWriteBlocks()

Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Roy Franz <[email protected]>
Reviewed-by: Olivier Martin <[email protected]>

Modified Paths:
--------------
    trunk/edk2/ArmPlatformPkg/Drivers/NorFlashDxe/NorFlashFvbDxe.c

Modified: trunk/edk2/ArmPlatformPkg/Drivers/NorFlashDxe/NorFlashFvbDxe.c
===================================================================
--- trunk/edk2/ArmPlatformPkg/Drivers/NorFlashDxe/NorFlashFvbDxe.c      
2013-10-21 05:56:07 UTC (rev 14791)
+++ trunk/edk2/ArmPlatformPkg/Drivers/NorFlashDxe/NorFlashFvbDxe.c      
2013-10-21 10:29:56 UTC (rev 14792)
@@ -608,7 +608,7 @@
   CopyMem((BlockBuffer + Offset), Buffer, *NumBytes);
 
   // 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)) {
     // Return one of the pre-approved error statuses
     Status = EFI_DEVICE_ERROR;

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.


------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60135031&iu=/4140/ostg.clktrk
_______________________________________________
edk2-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/edk2-commits

Reply via email to