[PATCH] acpi: madt: reduce scope of variable 'listint'
Colin King
colin.king at canonical.com
Wed Aug 17 09:39:38 UTC 2016
From: Colin Ian King <colin.king at canonical.com>
Minor change to fix cppcheck style warnings, no functional change
Signed-off-by: Colin Ian King <colin.king at canonical.com>
---
src/acpi/madt/madt.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/acpi/madt/madt.c b/src/acpi/madt/madt.c
index 3505f62..b087d27 100644
--- a/src/acpi/madt/madt.c
+++ b/src/acpi/madt/madt.c
@@ -303,10 +303,9 @@ static ACPI_OBJECT_TYPE madt_find_processor_uid(fwts_framework *fw,
{
char table_label[64];
fwts_list_link *item;
- struct acpi_integer *listint;
fwts_list_foreach(item, &processor_uids) {
- listint = fwts_list_data(struct acpi_integer *, item);
+ struct acpi_integer *listint = fwts_list_data(struct acpi_integer *, item);
if (uid == listint->value) {
fwts_passed(fw, "MADT %s has matching processor "
"UID %" PRIu64 ".", table_name, uid);
--
2.8.1
More information about the fwts-devel
mailing list