Re: [net-next] net: remove unnecessary carrier status check
From: Zhang ShengjuDate: 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
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