]> git.proxmox.com Git - mirror_edk2.git/commit
Vlv2TbltDevicePkg/PlatformFlashAccessLib: Add error return
authorMichael D Kinney <michael.d.kinney@intel.com>
Wed, 8 May 2019 21:34:58 +0000 (14:34 -0700)
committerMichael D Kinney <michael.d.kinney@intel.com>
Fri, 10 May 2019 02:58:05 +0000 (19:58 -0700)
commit3eac7496bef1636b3745ff015581012534a47721
treed8bdf7859fb65088f7ef95ba40b5cc51629ef258
parent21d5bf86b2238e78f92e403843e9cb7869cd28e7
Vlv2TbltDevicePkg/PlatformFlashAccessLib: Add error return

If the FLASH device cannot be erased or written, then the
flag FlashError is set to TRUE.

Add the missing logic to return an error if FlashError
is TRUE.  The missing logic was found from a GCC build that
noticed a local variable was declared and assigned, but was
not being used.

Cc: Zailiang Sun <zailiang.sun@intel.com>
Cc: Yi Qian <yi.qian@intel.com>
Signed-off-by: Michael D Kinney <michael.d.kinney@intel.com>
Reviewed-by: Zailiang Sun <zailiang.sun@intel.com>
Reviewed-by: Yi Qian <yi.qian@intel.com>
Vlv2TbltDevicePkg/Feature/Capsule/Library/PlatformFlashAccessLib/PlatformFlashAccessLib.c