diff options
author | Arnd Bergmann <arnd@arndb.de> | 2017-01-19 10:33:29 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-01-19 11:14:29 -0500 |
commit | ad05df399f3343b10664827a3860669a8a80782d (patch) | |
tree | cc0ec2d872c071391916600f406d15c8d23e2f9a /drivers/net/ethernet | |
parent | 03e4deff4987f79c34112c5ba4eb195d4f9382b0 (diff) | |
download | op-kernel-dev-ad05df399f3343b10664827a3860669a8a80782d.zip op-kernel-dev-ad05df399f3343b10664827a3860669a8a80782d.tar.gz |
net/mlx5e: Remove unused variable
A cleanup removed the only user of this variable
mlx5/core/en_ethtool.c: In function 'mlx5e_set_channels':
mlx5/core/en_ethtool.c:546:6: error: unused variable 'ncv' [-Werror=unused-variable]
Let's remove the declaration as well.
Fixes: 639e9e94160e ("net/mlx5e: Remove unnecessary checks when setting num channels")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Reviewed-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet')
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c b/drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c index b1b9eb6..5197817 100644 --- a/drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c +++ b/drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c @@ -543,7 +543,6 @@ static int mlx5e_set_channels(struct net_device *dev, struct ethtool_channels *ch) { struct mlx5e_priv *priv = netdev_priv(dev); - int ncv = mlx5e_get_max_num_channels(priv->mdev); unsigned int count = ch->combined_count; bool arfs_enabled; bool was_opened; |