Commit a63d665f authored by Peter Jones's avatar Peter Jones

Get rid of SectionCache in generate_hash(), it is unused.

Signed-off-by: default avatarPeter Jones <pjones@redhat.com>
parent 16a83563
......@@ -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 */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment