[PATCH 06/12] acpi: method: re-arrange code to avoid declarations after code

Colin King colin.king at canonical.com
Sun Jun 8 16:42:16 UTC 2014


From: Colin Ian King <colin.king at canonical.com>

Another mixed declarations and code fix

Signed-off-by: Colin Ian King <colin.king at canonical.com>
---
 src/acpi/method/method.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/acpi/method/method.c b/src/acpi/method/method.c
index 4324b2d..bb2c12d 100644
--- a/src/acpi/method/method.c
+++ b/src/acpi/method/method.c
@@ -2594,9 +2594,9 @@ static void method_test_CST_return(
 
 	/* Could be one or more packages */
 	for (i = 1; i < obj->Package.Count; i++) {
-		cst_elements_ok[i] = true;
-
 		ACPI_OBJECT *pkg;
+
+		cst_elements_ok[i] = true;
 		if (obj->Package.Elements[i].Type != ACPI_TYPE_PACKAGE) {
 			fwts_failed(fw, LOG_LEVEL_MEDIUM,
 				"Method_CSTElementType",
-- 
2.0.0




More information about the fwts-devel mailing list