[PATCH 09/12] hpet/hpet_check: re-arrange code to avoid declarations after code

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


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

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

diff --git a/src/hpet/hpet_check/hpet_check.c b/src/hpet/hpet_check/hpet_check.c
index 6d7403c..8f37c2f 100644
--- a/src/hpet/hpet_check/hpet_check.c
+++ b/src/hpet/hpet_check/hpet_check.c
@@ -142,11 +142,11 @@ static int hpet_check_deinit(fwts_framework *fw)
 
 static int hpet_check_test1(fwts_framework *fw)
 {
+	fwts_list_link *item;
+
 	if (klog == NULL)
 		return FWTS_ERROR;
 
-	fwts_list_link *item;
-
 	fwts_log_info(fw,
 		"This test checks the HPET PCI BAR for each timer block "
 		"in the timer. The base address is passed by the firmware "
-- 
2.0.0




More information about the fwts-devel mailing list