Minor: Ordered master member initialisations. redundancy
authorFlorian Pose <fp@igh-essen.com>
Fri, 09 Dec 2011 10:46:25 +0100
branchredundancy
changeset 2300 70b15347c707
parent 2299 b232b965d20f
child 2301 01e4381ebd09
Minor: Ordered master member initialisations.
master/master.c
--- a/master/master.c	Fri Dec 09 10:46:04 2011 +0100
+++ b/master/master.c	Fri Dec 09 10:46:25 2011 +0100
@@ -158,6 +158,7 @@
     master->slave_count = 0;
     
     INIT_LIST_HEAD(&master->configs);
+    INIT_LIST_HEAD(&master->domains);
 
     master->app_time = 0ULL;
     master->app_start_time = 0ULL;
@@ -183,8 +184,6 @@
     // send interval in IDLE phase
     ec_master_set_send_interval(master, 1000000 / HZ);
 
-    INIT_LIST_HEAD(&master->domains);
-
     master->debug_level = debug_level;
     master->stats.timeouts = 0;
     master->stats.corrupted = 0;