Re: [net-next] net: remove unnecessary carrier status check

2017-04-27 Thread David Miller
From: Zhang Shengju Date: Wed, 26 Apr 2017 17:49:38 +0800 > Since netif_carrier_on() will do nothing if device's carrier is already > on, so it's unnecessary to do carrier status check. > > It's the same for netif_carrier_off(). > > Signed-off-by: Zhang

[net-next] net: remove unnecessary carrier status check

2017-04-26 Thread Zhang Shengju
Since netif_carrier_on() will do nothing if device's carrier is already on, so it's unnecessary to do carrier status check. It's the same for netif_carrier_off(). Signed-off-by: Zhang Shengju --- net/core/dev.c | 11 --- 1 file changed, 4