summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrea Monaco <andrea.monaco@autistici.org>2021-11-18 17:41:00 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2021-11-18 19:06:34 +0100
commit3692e4afc25973dd3b887f1a9376874342ae5267 (patch)
tree4f79adc267b37c22fbbb1891fe4ad70e2d0e462d
parentc8bb19ccac4b53ff5b7bf9f05703e8dfd5405b4d (diff)
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>
-rw-r--r--acpi/acpi.c4
1 files changed, 0 insertions, 4 deletions
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;