summaryrefslogtreecommitdiff
path: root/drivers/net/mlx5/mlx5_stats.c
diff options
context:
space:
mode:
authorShahaf Shuler <shahafs@mellanox.com>2017-02-21 16:37:23 +0200
committerFerruh Yigit <ferruh.yigit@intel.com>2017-04-04 15:52:50 +0200
commitcd89f22a1e9770d312cac03c10705d48e5e36b4b (patch)
treeea3698be54b44a28d2b6669f4f89f6b655f48fb0 /drivers/net/mlx5/mlx5_stats.c
parent04b2c3c9434686cf4c221bd44fc5d9e75564c35a (diff)
downloaddpdk-cd89f22a1e9770d312cac03c10705d48e5e36b4b.zip
dpdk-cd89f22a1e9770d312cac03c10705d48e5e36b4b.tar.gz
dpdk-cd89f22a1e9770d312cac03c10705d48e5e36b4b.tar.xz
net/mlx5: remove unused interface name query
Interface name is queried, however never used. Signed-off-by: Shahaf Shuler <shahafs@mellanox.com> Acked-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com>
Diffstat (limited to 'drivers/net/mlx5/mlx5_stats.c')
-rw-r--r--drivers/net/mlx5/mlx5_stats.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/drivers/net/mlx5/mlx5_stats.c b/drivers/net/mlx5/mlx5_stats.c
index a48ebea..a211841 100644
--- a/drivers/net/mlx5/mlx5_stats.c
+++ b/drivers/net/mlx5/mlx5_stats.c
@@ -187,17 +187,12 @@ priv_xstats_init(struct priv *priv)
struct mlx5_xstats_ctrl *xstats_ctrl = &priv->xstats_ctrl;
unsigned int i;
unsigned int j;
- char ifname[IF_NAMESIZE];
struct ifreq ifr;
struct ethtool_drvinfo drvinfo;
struct ethtool_gstrings *strings = NULL;
unsigned int dev_stats_n;
unsigned int str_sz;
- if (priv_get_ifname(priv, &ifname)) {
- WARN("unable to get interface name");
- return;
- }
/* How many statistics are available. */
drvinfo.cmd = ETHTOOL_GDRVINFO;
ifr.ifr_data = (caddr_t)&drvinfo;