diff mbox

[edk2,09/35] IntelFrameworkModulePkg: DxeCapsuleLib: remove set but unused variables

Message ID 1458815844-24793-10-git-send-email-lersek@redhat.com
State Accepted
Commit cf8a6e5cf837604bbd998d0829c493fcbf82fbe7
Headers show

Commit Message

Laszlo Ersek March 24, 2016, 10:36 a.m. UTC
Cc: Jeff Fan <jeff.fan@intel.com>
Contributed-under: TianoCore Contribution Agreement 1.0
Signed-off-by: Laszlo Ersek <lersek@redhat.com>

---
 IntelFrameworkModulePkg/Library/DxeCapsuleLib/DxeCapsuleLib.c | 2 --
 1 file changed, 2 deletions(-)

-- 
1.8.3.1


_______________________________________________
edk2-devel mailing list
edk2-devel@lists.01.org
https://lists.01.org/mailman/listinfo/edk2-devel
diff mbox

Patch

diff --git a/IntelFrameworkModulePkg/Library/DxeCapsuleLib/DxeCapsuleLib.c b/IntelFrameworkModulePkg/Library/DxeCapsuleLib/DxeCapsuleLib.c
index 04db1a4f6c06..fc9b533f2ce2 100644
--- a/IntelFrameworkModulePkg/Library/DxeCapsuleLib/DxeCapsuleLib.c
+++ b/IntelFrameworkModulePkg/Library/DxeCapsuleLib/DxeCapsuleLib.c
@@ -139,7 +139,6 @@  ProcessFmpCapsuleImage (
 {
   EFI_STATUS                                    Status;
   EFI_FIRMWARE_MANAGEMENT_CAPSULE_HEADER        *FmpCapsuleHeader;
-  UINT8                                         *EndOfCapsule;
   EFI_FIRMWARE_MANAGEMENT_CAPSULE_IMAGE_HEADER  *ImageHeader;
   EFI_HANDLE                                    ImageHandle;
   UINT64                                        *ItemOffsetList;
@@ -170,7 +169,6 @@  ProcessFmpCapsuleImage (
   DriverDevicePath = NULL;
 
   FmpCapsuleHeader = (EFI_FIRMWARE_MANAGEMENT_CAPSULE_HEADER *) ((UINT8 *) CapsuleHeader + CapsuleHeader->HeaderSize);
-  EndOfCapsule     = (UINT8 *) CapsuleHeader + CapsuleHeader->CapsuleImageSize;
 
   if (FmpCapsuleHeader->Version > EFI_FIRMWARE_MANAGEMENT_CAPSULE_HEADER_INIT_VERSION) {
     return EFI_INVALID_PARAMETER;