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 | a63d665fb8407997ae057803877ed8149f80a25e (patch) | |
| tree | 4b0d9c5788d92d23260d35d284458ab3db1d5a6a | |
| parent | 16a83563508e28d3ebc5a53c12f0c735d08ae728 (diff) | |
| download | efi-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.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 */ |
