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

Minor: Removed warning when EoE interface is up upon master unloading.

parent 0897d44a
No related branches found
No related tags found
No related merge requests found
...@@ -161,7 +161,7 @@ int ec_eoe_init(ec_eoe_t *eoe /**< EoE handler */) ...@@ -161,7 +161,7 @@ int ec_eoe_init(ec_eoe_t *eoe /**< EoE handler */)
void ec_eoe_clear(ec_eoe_t *eoe /**< EoE handler */) 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); free_netdev(eoe->dev);
// empty transmit queue // empty transmit queue
...@@ -648,11 +648,8 @@ int ec_eoedev_stop(struct net_device *dev /**< EoE net_device */) ...@@ -648,11 +648,8 @@ int ec_eoedev_stop(struct net_device *dev /**< EoE net_device */)
eoe->opened = 0; eoe->opened = 0;
ec_eoe_flush(eoe); ec_eoe_flush(eoe);
EC_INFO("%s stopped.\n", dev->name); EC_INFO("%s stopped.\n", dev->name);
if (!eoe->slave) if (eoe->slave)
EC_WARN("Device %s is not coupled to any EoE slave!\n", dev->name);
else {
ec_slave_request_state(eoe->slave, EC_SLAVE_STATE_PREOP); ec_slave_request_state(eoe->slave, EC_SLAVE_STATE_PREOP);
}
return 0; return 0;
} }
......
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