summaryrefslogtreecommitdiff
path: root/MdeModulePkg/Library/DxeCapsuleLibFmp/DxeCapsuleLib.c
diff options
context:
space:
mode:
authorJiewen Yao <jiewen.yao@intel.com>2016-12-22 23:41:00 +0800
committerJiewen Yao <jiewen.yao@intel.com>2016-12-23 10:13:05 +0800
commita3850a1b45287d344d917ec7e0c09c4cbcaafdff (patch)
tree524816b8bd1224bf53b9d3177f03b50b49ccec9e /MdeModulePkg/Library/DxeCapsuleLibFmp/DxeCapsuleLib.c
parentde5209d5db0b96c2a2c1572838e5fc1301f95aa9 (diff)
downloadedk2-a3850a1b45287d344d917ec7e0c09c4cbcaafdff.zip
edk2-a3850a1b45287d344d917ec7e0c09c4cbcaafdff.tar.gz
edk2-a3850a1b45287d344d917ec7e0c09c4cbcaafdff.tar.bz2
MdeModulePkg/CapsuleLib: remove ImageIndex check.
UEFI specification does not require ImageIndex check, it only requires ImageTypeId check. Cc: Feng Tian <feng.tian@intel.com> Cc: Star Zeng <star.zeng@intel.com> Contributed-under: TianoCore Contribution Agreement 1.0 Signed-off-by: Jiewen Yao <jiewen.yao@intel.com> Reviewed-by: Feng Tian <feng.tian@intel.com> Reviewed-by: Star Zeng <star.zeng@intel.com>
Diffstat (limited to 'MdeModulePkg/Library/DxeCapsuleLibFmp/DxeCapsuleLib.c')
-rw-r--r--MdeModulePkg/Library/DxeCapsuleLibFmp/DxeCapsuleLib.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/MdeModulePkg/Library/DxeCapsuleLibFmp/DxeCapsuleLib.c b/MdeModulePkg/Library/DxeCapsuleLibFmp/DxeCapsuleLib.c
index 3ba3b9c..af08886 100644
--- a/MdeModulePkg/Library/DxeCapsuleLibFmp/DxeCapsuleLib.c
+++ b/MdeModulePkg/Library/DxeCapsuleLibFmp/DxeCapsuleLib.c
@@ -1013,8 +1013,7 @@ ProcessFmpCapsuleImage (
continue;
}
- if (CompareGuid(&ImageHeader->UpdateImageTypeId, &TempFmpImageInfo->ImageTypeId) &&
- ImageHeader->UpdateImageIndex == TempFmpImageInfo->ImageIndex) {
+ if (CompareGuid(&ImageHeader->UpdateImageTypeId, &TempFmpImageInfo->ImageTypeId)) {
AbortReason = NULL;
if (ImageHeader->Version >= EFI_FIRMWARE_MANAGEMENT_CAPSULE_IMAGE_HEADER_INIT_VERSION) {
if(ImageHeader->UpdateHardwareInstance != 0){