diff options
author | Achiad Shochat <achiad@mellanox.com> | 2015-11-03 06:07:22 (GMT) |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-11-03 15:41:50 (GMT) |
commit | fe9f4fe58d17e09b210061ed089dba6e81564652 (patch) | |
tree | 87aeed4b767f3dc1844031d9901de39bc5da1629 /drivers/net/ethernet/mellanox/mlx5/core/en_main.c | |
parent | 3435ab59d3febe0c00af2a4d40a6df401effe3de (diff) | |
download | linux-fe9f4fe58d17e09b210061ed089dba6e81564652.tar.xz |
net/mlx5e: Return error in case mlx5e_set_features() fails
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>
Diffstat (limited to 'drivers/net/ethernet/mellanox/mlx5/core/en_main.c')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx5/core/en_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en_main.c b/drivers/net/ethernet/mellanox/mlx5/core/en_main.c index febf711..28eaed5 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/en_main.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/en_main.c @@ -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) |