|
@@ -249,10 +249,11 @@ static void dev_watchdog_down(struct net_device *dev)
|
|
*/
|
|
*/
|
|
void netif_carrier_on(struct net_device *dev)
|
|
void netif_carrier_on(struct net_device *dev)
|
|
{
|
|
{
|
|
- if (test_and_clear_bit(__LINK_STATE_NOCARRIER, &dev->state))
|
|
|
|
|
|
+ if (test_and_clear_bit(__LINK_STATE_NOCARRIER, &dev->state)) {
|
|
linkwatch_fire_event(dev);
|
|
linkwatch_fire_event(dev);
|
|
- if (netif_running(dev))
|
|
|
|
- __netdev_watchdog_up(dev);
|
|
|
|
|
|
+ if (netif_running(dev))
|
|
|
|
+ __netdev_watchdog_up(dev);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|