blob: aa03639bed666b07dc0cc487217d12fc7de50281 [file] [log] [blame]
Damjan Marion0f60ff82017-03-30 17:58:42 +02001diff --git a/drivers/net/mlx5/mlx5_stats.c b/drivers/net/mlx5/mlx5_stats.c
2index 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;