Damjan Marion | 0f60ff8 | 2017-03-30 17:58:42 +0200 | [diff] [blame] | 1 | diff --git a/drivers/net/mlx5/mlx5_stats.c b/drivers/net/mlx5/mlx5_stats.c |
| 2 | index 20c957e..0c80e4f 100644 |
| 3 | --- a/drivers/net/mlx5/mlx5_stats.c |
| 4 | +++ b/drivers/net/mlx5/mlx5_stats.c |
| 5 | @@ -177,17 +177,12 @@ struct mlx5_counter_ctrl { |
| 6 | struct mlx5_xstats_ctrl *xstats_ctrl = &priv->xstats_ctrl; |
| 7 | unsigned int i; |
| 8 | unsigned int j; |
| 9 | - char ifname[IF_NAMESIZE]; |
| 10 | struct ifreq ifr; |
| 11 | struct ethtool_drvinfo drvinfo; |
| 12 | struct ethtool_gstrings *strings = NULL; |
| 13 | unsigned int dev_stats_n; |
| 14 | unsigned int str_sz; |
| 15 | |
| 16 | - if (priv_get_ifname(priv, &ifname)) { |
| 17 | - WARN("unable to get interface name"); |
| 18 | - return; |
| 19 | - } |
| 20 | /* How many statistics are available. */ |
| 21 | drvinfo.cmd = ETHTOOL_GDRVINFO; |
| 22 | ifr.ifr_data = (caddr_t)&drvinfo; |