From 5103c3b368e04dd1eab1202b87363c7e6ba8f927 Mon Sep 17 00:00:00 2001
From: Peter Jones <pjones@redhat.com>
Date: Fri, 11 Apr 2014 15:07:45 -0400
Subject: [PATCH 25/74] Get rid of SectionCache in generate_hash(), it is
unused.
Signed-off-by: Peter Jones <pjones@redhat.com>
---
shim.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/shim.c b/shim.c
index d06bd02..48a6f2f 100644
--- a/shim.c
+++ b/shim.c
@@ -509,7 +509,6 @@ static EFI_STATUS generate_hash (char *data, int datasize_in,
unsigned int datasize;
EFI_IMAGE_SECTION_HEADER *Section;
EFI_IMAGE_SECTION_HEADER *SectionHeader = NULL;
- EFI_IMAGE_SECTION_HEADER *SectionCache;
EFI_STATUS status = EFI_SUCCESS;
EFI_IMAGE_DOS_HEADER *DosHdr = (void *)data;
unsigned int PEHdr_offset = 0;
@@ -594,7 +593,7 @@ static EFI_STATUS generate_hash (char *data, int datasize_in,
#endif
/* Validate section locations and sizes */
- for (index = 0, SumOfSectionBytes = 0; index < context->PEHdr->Pe32.FileHeader.NumberOfSections; index++, SectionCache++) {
+ for (index = 0, SumOfSectionBytes = 0; index < context->PEHdr->Pe32.FileHeader.NumberOfSections; index++) {
EFI_IMAGE_SECTION_HEADER *SectionPtr;
/* Validate SectionPtr is within image */
--
1.9.3