From 3692e4afc25973dd3b887f1a9376874342ae5267 Mon Sep 17 00:00:00 2001 From: Andrea Monaco Date: Thu, 18 Nov 2021 17:41:00 +0100 Subject: acpi: remove useless code in acpi.c These were writing to an array and then never using it. Maybe they were useful for debugging. Message-Id: <87sfvtmn6r.fsf@autistici.org> --- acpi/acpi.c | 4 ---- 1 file changed, 4 deletions(-) (limited to 'acpi') diff --git a/acpi/acpi.c b/acpi/acpi.c index 63066aaf..acbf79c7 100644 --- a/acpi/acpi.c +++ b/acpi/acpi.c @@ -139,8 +139,6 @@ acpi_get_num_tables(size_t *num_tables) err = mmap_phys_acpi_header(acpi_ptr32, &next, &virt_addr2, fd_mem); } - char name[5] = { 0 }; - snprintf(name, 5, "%s", &next->signature[0]); if (next->signature[0] == '\0' || next->length == 0) { munmap(virt_addr2, ESCD_SIZE); continue; @@ -257,8 +255,6 @@ acpi_get_tables(struct acpi_table **tables) } } - char name[5] = { 0 }; - snprintf(name, 5, "%s", &next->signature[0]); if (next->signature[0] == '\0' || next->length == 0) { munmap(virt_addr2, ESCD_SIZE); continue; -- cgit v1.2.3