public inbox for devel@edk2.groups.io
 help / color / mirror / Atom feed
* [PATCH] SignedCapsulePkg: GetImage() return EFI_UNSUPPORTED.
@ 2016-11-29  4:56 Jiewen Yao
  2016-11-29  5:13 ` Dong, Eric
  0 siblings, 1 reply; 2+ messages in thread
From: Jiewen Yao @ 2016-11-29  4:56 UTC (permalink / raw)
  To: edk2-devel; +Cc: Eric Dong

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>
---
 .../Universal/SystemFirmwareUpdate/SystemFirmwareCommonDxe.c | 12 ------------
 1 file changed, 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;
 }
 
-- 
2.7.4.windows.1



^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-11-29  5:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-29  4:56 [PATCH] SignedCapsulePkg: GetImage() return EFI_UNSUPPORTED Jiewen Yao
2016-11-29  5:13 ` Dong, Eric

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox