Removed unused domain state.
authorFlorian Pose <fp@igh-essen.com>
Mon, 07 Apr 2008 10:19:59 +0000
changeset 885 eaa10a277d52
parent 884 f661afa67784
child 886 ee1b25db1fbf
Removed unused domain state.
master/domain.c
master/domain.h
--- a/master/domain.c	Thu Apr 03 15:50:46 2008 +0000
+++ b/master/domain.c	Mon Apr 07 10:19:59 2008 +0000
@@ -104,7 +104,6 @@
     domain->data_origin = EC_ORIG_INTERNAL;
     domain->logical_base_address = 0L;
     domain->working_counter = 0xFFFFFFFF;
-    domain->state = 0;
     domain->working_counter_changes = 0;
     domain->notify_jiffies = 0;
 
@@ -424,15 +423,11 @@
     ec_datagram_t *datagram;
 
     working_counter_sum = 0;
-    domain->state = 0;
     list_for_each_entry(datagram, &domain->datagrams, list) {
         ec_datagram_output_stats(datagram);
         if (datagram->state == EC_DATAGRAM_RECEIVED) {
             working_counter_sum += datagram->working_counter;
         }
-        else {
-            domain->state = -1;
-        }
     }
 
     if (working_counter_sum != domain->working_counter) {
--- a/master/domain.h	Thu Apr 03 15:50:46 2008 +0000
+++ b/master/domain.h	Mon Apr 07 10:19:59 2008 +0000
@@ -71,7 +71,6 @@
     uint32_t logical_base_address; /**< Logical offset address of the
                                      process data. */
     unsigned int working_counter; /**< Last working counter value. */
-    unsigned int state; /**< Error state. */
     unsigned int working_counter_changes; /**< Working counter changes
                                              since last notification. */
     unsigned long notify_jiffies; /**< Time of last notification. */