[PATCH] lib/src/fwts_acpi_tables: remove shadowed pointer ptr
Colin King
colin.king at canonical.com
Wed Aug 15 09:57:31 UTC 2018
From: Colin Ian King <colin.king at canonical.com>
Pointer 'ptr' can be removed as it is a shadow of a previously
declared pointer with the same name and we don't need another
copy of one of the same name.
Signed-off-by: Colin Ian King <colin.king at canonical.com>
---
src/lib/src/fwts_acpi_tables.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/src/lib/src/fwts_acpi_tables.c b/src/lib/src/fwts_acpi_tables.c
index f28ed60a..ccf0a7b1 100644
--- a/src/lib/src/fwts_acpi_tables.c
+++ b/src/lib/src/fwts_acpi_tables.c
@@ -595,7 +595,6 @@ static uint8_t *fwts_acpi_load_table_from_acpidump(
*/
while (fgets(buffer, sizeof(buffer), fp) ) {
uint8_t *new_tmp;
- char *ptr;
int n;
/* Get offset */
--
2.17.1
More information about the fwts-devel
mailing list