summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Jones <pjones@redhat.com>2014-04-11 15:07:45 -0400
committerPeter Jones <pjones@redhat.com>2014-04-11 15:07:45 -0400
commita63d665fb8407997ae057803877ed8149f80a25e (patch)
tree4b0d9c5788d92d23260d35d284458ab3db1d5a6a
parent16a83563508e28d3ebc5a53c12f0c735d08ae728 (diff)
downloadefi-boot-shim-a63d665fb8407997ae057803877ed8149f80a25e.tar.gz
efi-boot-shim-a63d665fb8407997ae057803877ed8149f80a25e.zip
Get rid of SectionCache in generate_hash(), it is unused.
Signed-off-by: Peter Jones <pjones@redhat.com>
-rw-r--r--shim.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/shim.c b/shim.c
index d06bd02c..48a6f2f1 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 */