[PATCH 4/4] lib: fwts_acpi_table: remove dead initialisation of ptr
Colin King
colin.king at canonical.com
Tue Sep 8 07:00:49 UTC 2015
From: Colin Ian King <colin.king at canonical.com>
ptr is re-assigned just a few lines later, so remove the first
redundant initialisation of ptr
Signed-off-by: Colin Ian King <colin.king at canonical.com>
---
src/lib/src/fwts_acpi_tables.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/lib/src/fwts_acpi_tables.c b/src/lib/src/fwts_acpi_tables.c
index 3fa200b..0aab404 100644
--- a/src/lib/src/fwts_acpi_tables.c
+++ b/src/lib/src/fwts_acpi_tables.c
@@ -533,7 +533,7 @@ static uint8_t *fwts_acpi_load_table_from_acpidump(
char buffer[128];
uint8_t *table;
uint8_t *tmp = NULL;
- char *ptr = buffer;
+ char *ptr;
size_t len = 0;
unsigned long long table_addr;
ptrdiff_t name_len;
--
2.5.0
More information about the fwts-devel
mailing list