Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3fdd34c1 authored by Leon Romanovsky's avatar Leon Romanovsky Committed by David S. Miller
Browse files

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: default avatarLeon Romanovsky <leonro@mellanox.com>
Acked-by: default avatarYuval Mintz <Yuval.Mintz@cavium.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 218af599
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -10303,7 +10303,7 @@ static void bnx2x_sp_rtnl_task(struct work_struct *work)
	}
	if (test_and_clear_bit(BNX2X_SP_RTNL_VFPF_CHANNEL_DOWN,
			       &bp->sp_rtnl_state)){
		if (!test_bit(__LINK_STATE_NOCARRIER, &bp->dev->state)) {
		if (netif_carrier_ok(bp->dev)) {
			bnx2x_tx_disable(bp);
			BNX2X_ERR("PF indicated channel is not servicable anymore. This means this VF device is no longer operational\n");
		}