bnx2x: Remove open coded carrier check
authorLeon Romanovsky <leonro@mellanox.com>
Tue, 16 May 2017 12:20:56 +0000 (15:20 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 16 May 2017 19:48:57 +0000 (15:48 -0400)
commit3fdd34c18e93d4a2d7609955d2e6f122e21216e1
treeba62d0ac707416d5bfed7a66a3f1bc76c2011c8d
parent218af599fa635b107cfe10acf3249c4dfe5e4123
bnx2x: Remove open coded carrier check

There is inline function to test if carrier present,
so it makes open-coded solution redundant.

Signed-off-by: Leon Romanovsky <leonro@mellanox.com>
Acked-by: Yuval Mintz <Yuval.Mintz@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c