]> git.baikalelectronics.ru Git - kernel.git/commit
forcedeth: remove unnecessary carrier status check
authorZhu Yanjun <yanjun.zhu@oracle.com>
Wed, 3 May 2017 04:43:42 +0000 (00:43 -0400)
committerDavid S. Miller <davem@davemloft.net>
Thu, 4 May 2017 14:57:41 +0000 (10:57 -0400)
commit36bc2c393609ea5a5235f925a99e1cd48866531c
tree729fc328f649ad84637b9f3def9195b81c68c175
parent6fec15f2fb4e8cf20693671ee0c72ad213800ea3
forcedeth: 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: Zhu Yanjun <yanjun.zhu@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/nvidia/forcedeth.c