diff options
| author | Peter Jones <pjones@redhat.com> | 2014-04-11 15:07:45 -0400 |
|---|---|---|
| committer | Peter Jones <pjones@redhat.com> | 2014-04-11 15:07:45 -0400 |
| commit | 5103c3b368e04dd1eab1202b87363c7e6ba8f927 (patch) | |
| tree | 4b0d9c5788d92d23260d35d284458ab3db1d5a6a | |
| parent | a876037a0d4b91638fcb6274bd7a976f8318a7e2 (diff) | |
| download | efi-boot-shim-5103c3b368e04dd1eab1202b87363c7e6ba8f927.tar.gz efi-boot-shim-5103c3b368e04dd1eab1202b87363c7e6ba8f927.zip | |
Get rid of SectionCache in generate_hash(), it is unused.
Signed-off-by: Peter Jones <pjones@redhat.com>
| -rw-r--r-- | shim.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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 */ |
