r8152: check linking status with netif_carrier_ok
authorhayeswang <hayeswang@realtek.com>
Fri, 6 Feb 2015 03:30:47 +0000 (11:30 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sun, 8 Feb 2015 06:46:25 +0000 (22:46 -0800)
commit51d979faa274d2a924907bdf59f88a216dcc19a9
tree6763904e6c7201a1c014892ca5349b7c9d6c103d
parent34203e25cb04ca942e29907b602c4f3d40e3c8ec
r8152: check linking status with netif_carrier_ok

Replace (tp->speed & LINK_STATUS) with netif_carrier_ok().

Signed-off-by: Hayes Wang <hayeswang@realtek.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/usb/r8152.c