diff options
| author | Javier Martinez Canillas <javierm@redhat.com> | 2021-02-16 10:55:22 +0100 |
|---|---|---|
| committer | Javier Martinez Canillas <javier@dowhile0.org> | 2021-02-16 16:42:27 +0100 |
| commit | d1eb757febd42499e45bd764c0e050a6e897ed20 (patch) | |
| tree | f91212dc98143ccce7ea05a016371ca7f6582822 | |
| parent | 0bc2aa4ca81d8a022ce37ab3eb295836fb18258b (diff) | |
| download | efi-boot-shim-d1eb757febd42499e45bd764c0e050a6e897ed20.tar.gz efi-boot-shim-d1eb757febd42499e45bd764c0e050a6e897ed20.zip | |
sbat: remove unused buffer parameter in parse_sbat() function
It's a left over from an early implementation that was never cleaned.
Reported-by: Christopher Co <christopher.co@microsoft.com>
Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
| -rw-r--r-- | include/sbat.h | 3 | ||||
| -rw-r--r-- | pe.c | 2 | ||||
| -rw-r--r-- | sbat.c | 2 |
3 files changed, 3 insertions, 4 deletions
diff --git a/include/sbat.h b/include/sbat.h index 5f0d7643..c49c645e 100644 --- a/include/sbat.h +++ b/include/sbat.h @@ -20,8 +20,7 @@ struct sbat { struct sbat_entry **entries; }; -EFI_STATUS parse_sbat(char *sbat_base, size_t sbat_size, char *buffer, - struct sbat *sbat); +EFI_STATUS parse_sbat(char *sbat_base, size_t sbat_size, struct sbat *sbat); #endif /* !SBAT_H_ */ // vim:fenc=utf-8:tw=75:noet @@ -1057,7 +1057,7 @@ handle_image (void *data, unsigned int datasize, CopyMem(sbat_data, SBATBase, SBATSize); sbat_data[SBATSize] = '\0'; - res = parse_sbat(sbat_data, sbat_size, buffer, &sbat); + res = parse_sbat(sbat_data, sbat_size, &sbat); if (res < 0) { console_print(L"SBAT data not correct: %r\n", res); return EFI_UNSUPPORTED; @@ -68,7 +68,7 @@ error: } EFI_STATUS -parse_sbat(char *sbat_base, size_t sbat_size, char *buffer, struct sbat *sbat) +parse_sbat(char *sbat_base, size_t sbat_size, struct sbat *sbat) { CHAR8 *current = (CHAR8 *)sbat_base; CHAR8 *end = (CHAR8 *)sbat_base + sbat_size; |
