Skip to content

Commit

Permalink
net/mlx5e: Return error in case mlx5e_set_features() fails
Browse files Browse the repository at this point in the history
In case mlx5e_set_features() fails, return the failure status rather
than 0.

Signed-off-by: Achiad Shochat <achiad@mellanox.com>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Achiad Shochat authored and davem330 committed Nov 3, 2015
1 parent 3435ab5 commit fe9f4fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/mellanox/mlx5/core/en_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1843,7 +1843,7 @@ static int mlx5e_set_features(struct net_device *netdev,
mlx5e_disable_vlan_filter(priv);
}

return 0;
return err;
}

static int mlx5e_change_mtu(struct net_device *netdev, int new_mtu)
Expand Down

0 comments on commit fe9f4fe

Please sign in to comment.