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>
This commit is contained in:
Achiad Shochat 2015-11-03 08:07:22 +02:00 committed by David S. Miller
parent 3435ab59d3
commit fe9f4fe58d
1 changed files with 1 additions and 1 deletions

View File

@ -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)