mirror of
https://gitlab.com/etherlab.org/ethercat.git
synced 2026-02-05 19:39:50 +08:00
Removed unused domain state.
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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. */
|
||||
|
||||
Reference in New Issue
Block a user