]> git.proxmox.com Git - mirror_edk2.git/commit
MdeModulePkg/EsrtFmpDxe: Support multiple devices with 0 HardwareInstance
authordevel@edk2.groups.io <devel@edk2.groups.io>
Mon, 12 Dec 2022 19:27:26 +0000 (11:27 -0800)
committermergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
Wed, 15 Feb 2023 01:52:59 +0000 (01:52 +0000)
commit090642db7ac124c336da72e1954e1fb09e816fb0
tree1d9d96dd3c168f39e08877b74fcee9e8514f094e
parentf9c6b5134e5e2c5ca977f422119b1255412acd53
MdeModulePkg/EsrtFmpDxe: Support multiple devices with 0 HardwareInstance

Skip error check if HardwareInstance is 0 as this either means that
FmpVersion < 3 and not supported or,
"A zero means the FMP provider is not able to determine a
unique hardware instance number or a hardware instance number
is not needed." per UEFI specification.

As the FmpInstances are merged and HardwareInstance is not used
remove error check in this case.

Signed-off-by: Jeff Brasen <jbrasen@nvidia.com>
Reviewed-by: Michael D Kinney <michael.d.kinney@intel.com>
MdeModulePkg/Universal/EsrtFmpDxe/EsrtFmp.c