Removed unused domain state.

This commit is contained in:
Florian Pose
2008-04-07 10:19:59 +00:00
parent 588cd7dab6
commit 5cbdbc6d4b
2 changed files with 0 additions and 6 deletions

View File

@@ -104,7 +104,6 @@ int ec_domain_init(
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 @@ void ecrt_domain_process(ec_domain_t *domain)
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) {

View File

@@ -71,7 +71,6 @@ struct ec_domain
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. */