Skip to content
Snippets Groups Projects
Commit d87a04e0 authored by Florian Pose's avatar Florian Pose
Browse files

Removed unused domain state.

parent 5ef1ffe4
No related branches found
No related tags found
No related merge requests found
...@@ -104,7 +104,6 @@ int ec_domain_init( ...@@ -104,7 +104,6 @@ int ec_domain_init(
domain->data_origin = EC_ORIG_INTERNAL; domain->data_origin = EC_ORIG_INTERNAL;
domain->logical_base_address = 0L; domain->logical_base_address = 0L;
domain->working_counter = 0xFFFFFFFF; domain->working_counter = 0xFFFFFFFF;
domain->state = 0;
domain->working_counter_changes = 0; domain->working_counter_changes = 0;
domain->notify_jiffies = 0; domain->notify_jiffies = 0;
...@@ -424,15 +423,11 @@ void ecrt_domain_process(ec_domain_t *domain) ...@@ -424,15 +423,11 @@ void ecrt_domain_process(ec_domain_t *domain)
ec_datagram_t *datagram; ec_datagram_t *datagram;
working_counter_sum = 0; working_counter_sum = 0;
domain->state = 0;
list_for_each_entry(datagram, &domain->datagrams, list) { list_for_each_entry(datagram, &domain->datagrams, list) {
ec_datagram_output_stats(datagram); ec_datagram_output_stats(datagram);
if (datagram->state == EC_DATAGRAM_RECEIVED) { if (datagram->state == EC_DATAGRAM_RECEIVED) {
working_counter_sum += datagram->working_counter; working_counter_sum += datagram->working_counter;
} }
else {
domain->state = -1;
}
} }
if (working_counter_sum != domain->working_counter) { if (working_counter_sum != domain->working_counter) {
......
...@@ -71,7 +71,6 @@ struct ec_domain ...@@ -71,7 +71,6 @@ struct ec_domain
uint32_t logical_base_address; /**< Logical offset address of the uint32_t logical_base_address; /**< Logical offset address of the
process data. */ process data. */
unsigned int working_counter; /**< Last working counter value. */ unsigned int working_counter; /**< Last working counter value. */
unsigned int state; /**< Error state. */
unsigned int working_counter_changes; /**< Working counter changes unsigned int working_counter_changes; /**< Working counter changes
since last notification. */ since last notification. */
unsigned long notify_jiffies; /**< Time of last notification. */ unsigned long notify_jiffies; /**< Time of last notification. */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment