Minor: Removed warning when EoE interface is up upon master unloading.
authorFlorian Pose <fp@igh-essen.com>
Mon, 12 Feb 2007 14:42:36 +0000
changeset 552 029546740810
parent 551 ac230bbd1d76
child 553 a4e0267825e3
Minor: Removed warning when EoE interface is up upon master unloading.
master/ethernet.c
--- a/master/ethernet.c	Mon Feb 12 11:16:54 2007 +0000
+++ b/master/ethernet.c	Mon Feb 12 14:42:36 2007 +0000
@@ -161,7 +161,7 @@
 
 void ec_eoe_clear(ec_eoe_t *eoe /**< EoE handler */)
 {
-    unregister_netdev(eoe->dev);
+    unregister_netdev(eoe->dev); // possibly calls close callback
     free_netdev(eoe->dev);
 
     // empty transmit queue
@@ -648,11 +648,8 @@
     eoe->opened = 0;
     ec_eoe_flush(eoe);
     EC_INFO("%s stopped.\n", dev->name);
-    if (!eoe->slave)
-        EC_WARN("Device %s is not coupled to any EoE slave!\n", dev->name);
-    else {
+    if (eoe->slave)
         ec_slave_request_state(eoe->slave, EC_SLAVE_STATE_PREOP);
-    }
     return 0;
 }