Removed unnecessary call of ec_master_inject_external_datagrams(). redundancy
authorFlorian Pose <fp@igh-essen.com>
Fri, 16 Dec 2011 16:29:00 +0100
branchredundancy
changeset 2305 668bdb89879b
parent 2304 1b0372eede04
child 2306 4c0c7347a956
Removed unnecessary call of ec_master_inject_external_datagrams().
master/master.c
--- a/master/master.c	Fri Dec 16 16:26:16 2011 +0100
+++ b/master/master.c	Fri Dec 16 16:29:00 2011 +0100
@@ -1386,7 +1386,6 @@
             ec_master_queue_datagram(master, &master->fsm_datagram,
                     EC_DEVICE_MAIN);
         }
-        ec_master_inject_external_datagrams(master);
         ecrt_master_send(master);
         sent_bytes = master->devices[EC_DEVICE_MAIN].tx_skb[
             master->devices[EC_DEVICE_MAIN].tx_ring_index]->len;
@@ -2219,6 +2218,7 @@
                 EC_DEVICE_MAIN);
         master->injection_seq_rt = master->injection_seq_fsm;
     }
+
     ec_master_inject_external_datagrams(master);
 
     for (i = 0; i < EC_NUM_DEVICES; i++) {