From d1eb757febd42499e45bd764c0e050a6e897ed20 Mon Sep 17 00:00:00 2001 From: Javier Martinez Canillas Date: Tue, 16 Feb 2021 10:55:22 +0100 Subject: 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 Signed-off-by: Javier Martinez Canillas --- include/sbat.h | 3 +-- pe.c | 2 +- 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 diff --git a/pe.c b/pe.c index acbf82e8..85a0b3b0 100644 --- a/pe.c +++ b/pe.c @@ -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; diff --git a/sbat.c b/sbat.c index 96c43cc8..2bddbce2 100644 --- a/sbat.c +++ b/sbat.c @@ -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; -- cgit v1.2.3