diff options
| author | Heinrich Schuchardt <heinrich.schuchardt@canonical.com> | 2021-09-03 22:38:40 +0200 |
|---|---|---|
| committer | Peter Jones <pjones@redhat.com> | 2021-09-10 16:09:26 -0400 |
| commit | 26998367eb6153cd24b6e82949d5f7874a036372 (patch) | |
| tree | 4bf0bb53906e5cc38c7befe5e323370c9593cf19 /include | |
| parent | c1a84dc0a695782e55a97173e4f9f8a98432f9e1 (diff) | |
| download | efi-boot-shim-26998367eb6153cd24b6e82949d5f7874a036372.tar.gz efi-boot-shim-26998367eb6153cd24b6e82949d5f7874a036372.zip | |
pe: simplify generate_hash()
Copying the value of datasize_in to two further variables and then using
all three randomly in the code makes it hard to read.
datasize_in is never changed in generate_hash() so we can do with this
parameter alone. Rename it to datasize.
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Diffstat (limited to 'include')
| -rw-r--r-- | include/pe.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/pe.h b/include/pe.h index 79bf440c..43727f5e 100644 --- a/include/pe.h +++ b/include/pe.h @@ -25,7 +25,7 @@ handle_image (void *data, unsigned int datasize, UINTN *alloc_pages); EFI_STATUS -generate_hash (char *data, unsigned int datasize_in, +generate_hash (char *data, unsigned int datasize, PE_COFF_LOADER_IMAGE_CONTEXT *context, UINT8 *sha256hash, UINT8 *sha1hash); |
