diff options
author | Jiewen Yao <jiewen.yao@intel.com> | 2016-11-29 12:55:03 +0800 |
---|---|---|
committer | Jiewen Yao <jiewen.yao@intel.com> | 2016-11-30 14:39:01 +0800 |
commit | 78c7bce8f5422151c0148d9f40d138fd9007a59a (patch) | |
tree | a3206142d9fadf8ef6310195bce26374307616c7 /SignedCapsulePkg | |
parent | 41d739e4ecb189e1c5e478a55a8a21b0784f2c76 (diff) | |
download | edk2-78c7bce8f5422151c0148d9f40d138fd9007a59a.zip edk2-78c7bce8f5422151c0148d9f40d138fd9007a59a.tar.gz edk2-78c7bce8f5422151c0148d9f40d138fd9007a59a.tar.bz2 |
SignedCapsulePkg: GetImage() return EFI_UNSUPPORTED.
According to UEFI spec, unsupported function should return EFI_UNSUPPORTED
directly.
Cc: Eric Dong <eric.dong@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Jiewen Yao <jiewen.yao@intel.com>
Reviewed-by: Eric Dong <eric.dong@intel.com>
Diffstat (limited to 'SignedCapsulePkg')
-rw-r--r-- | SignedCapsulePkg/Universal/SystemFirmwareUpdate/SystemFirmwareCommonDxe.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/SignedCapsulePkg/Universal/SystemFirmwareUpdate/SystemFirmwareCommonDxe.c b/SignedCapsulePkg/Universal/SystemFirmwareUpdate/SystemFirmwareCommonDxe.c index 642a99d..60490a4 100644 --- a/SignedCapsulePkg/Universal/SystemFirmwareUpdate/SystemFirmwareCommonDxe.c +++ b/SignedCapsulePkg/Universal/SystemFirmwareUpdate/SystemFirmwareCommonDxe.c @@ -178,18 +178,6 @@ FmpGetImage ( IN OUT UINTN *ImageSize
)
{
- SYSTEM_FMP_PRIVATE_DATA *SystemFmpPrivate;
-
- if (Image == NULL || ImageSize == NULL) {
- return EFI_INVALID_PARAMETER;
- }
-
- SystemFmpPrivate = SYSTEM_FMP_PRIVATE_DATA_FROM_FMP(This);
-
- if (ImageIndex == 0 || ImageIndex > SystemFmpPrivate->DescriptorCount || ImageSize == NULL || Image == NULL) {
- return EFI_INVALID_PARAMETER;
- }
-
return EFI_UNSUPPORTED;
}
|