]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5e: Remove unused variable
authorArnd Bergmann <arnd@arndb.de>
Thu, 19 Jan 2017 09:33:29 +0000 (10:33 +0100)
committerDavid S. Miller <davem@davemloft.net>
Thu, 19 Jan 2017 16:14:29 +0000 (11:14 -0500)
commitf1eea2abfc70198a20d3d1ea9ef65a88b06f53f2
treecc0ec2d872c071391916600f406d15c8d23e2f9a
parent0e00f54dab7ab77ceb4eb050cd268f0bdc0c10aa
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: ec6ca74f61fa ("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>
drivers/net/ethernet/mellanox/mlx5/core/en_ethtool.c