Removed unused variable frames_timed_out.
authorFlorian Pose <fp@igh-essen.com>
Sun, 07 Mar 2010 21:20:40 +0100
changeset 1848 1fe21e740efd
parent 1847 54be2994d832
child 1849 0a660edc7180
Removed unused variable frames_timed_out.
master/master.c
master/master.h
--- a/master/master.c	Sat Mar 06 20:51:12 2010 +0100
+++ b/master/master.c	Sun Mar 07 21:20:40 2010 +0100
@@ -170,7 +170,6 @@
     master->stats.corrupted = 0;
     master->stats.unmatched = 0;
     master->stats.output_jiffies = 0;
-    master->frames_timed_out = 0;
 
     master->thread = NULL;
 
@@ -2097,7 +2096,6 @@
 void ecrt_master_receive(ec_master_t *master)
 {
     ec_datagram_t *datagram, *next;
-    unsigned int frames_timed_out = 0;
 
     // receive datagrams
     ec_device_poll(&master->main_device);
@@ -2113,7 +2111,6 @@
         if (master->main_device.jiffies_poll - datagram->jiffies_sent
                 > timeout_jiffies) {
 #endif
-            frames_timed_out = 1;
             list_del_init(&datagram->queue);
             datagram->state = EC_DATAGRAM_TIMED_OUT;
             master->stats.timeouts++;
@@ -2133,8 +2130,6 @@
             }
         }
     }
-
-    master->frames_timed_out = frames_timed_out;
 }
 
 /*****************************************************************************/
--- a/master/master.h	Sat Mar 06 20:51:12 2010 +0100
+++ b/master/master.h	Sun Mar 07 21:20:40 2010 +0100
@@ -161,8 +161,6 @@
 
     unsigned int debug_level; /**< Master debug level. */
     ec_stats_t stats; /**< Cyclic statistics. */
-    unsigned int frames_timed_out; /**< There were frame timeouts in the last
-                                     call to ecrt_master_receive(). */
 
     struct task_struct *thread; /**< Master thread. */