diff options
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx4/en_dcb_nl.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx4/en_dcb_nl.c b/drivers/net/ethernet/mellanox/mlx4/en_dcb_nl.c index 97081e5bafd1..316a70714434 100644 --- a/drivers/net/ethernet/mellanox/mlx4/en_dcb_nl.c +++ b/drivers/net/ethernet/mellanox/mlx4/en_dcb_nl.c | |||
@@ -239,7 +239,10 @@ static u8 mlx4_en_dcbnl_set_state(struct net_device *dev, u8 state) | |||
239 | priv->flags &= ~MLX4_EN_FLAG_DCB_ENABLED; | 239 | priv->flags &= ~MLX4_EN_FLAG_DCB_ENABLED; |
240 | } | 240 | } |
241 | 241 | ||
242 | return mlx4_en_setup_tc(dev, num_tcs); | 242 | if (mlx4_en_setup_tc(dev, num_tcs)) |
243 | return 1; | ||
244 | |||
245 | return 0; | ||
243 | } | 246 | } |
244 | 247 | ||
245 | /* On success returns a non-zero 802.1p user priority bitmap | 248 | /* On success returns a non-zero 802.1p user priority bitmap |