summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJavier Martinez Canillas <javierm@redhat.com>2021-02-16 10:55:22 +0100
committerJavier Martinez Canillas <javier@dowhile0.org>2021-02-16 16:42:27 +0100
commitd1eb757febd42499e45bd764c0e050a6e897ed20 (patch)
treef91212dc98143ccce7ea05a016371ca7f6582822
parent0bc2aa4ca81d8a022ce37ab3eb295836fb18258b (diff)
downloadefi-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.h3
-rw-r--r--pe.c2
-rw-r--r--sbat.c2
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;