net/mlx5: fix icc build
authorNélio Laranjeiro <nelio.laranjeiro@6wind.com>
Mon, 19 Mar 2018 10:42:16 +0000 (11:42 +0100)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 30 Mar 2018 12:08:44 +0000 (14:08 +0200)
commit7b2207afe86df58b571e722dcee14734e91cdb2e
treeea51a2c172446a38edae73d0d0a1212033b85c94
parentb7059e6e436852c1d8be241970c042dd182ff63d
net/mlx5: fix icc build

Remove the second declaration of device_attr [1] inside the loop as well as
the query_device_ex() which has already been done outside of the loop.

[1] https://dpdk.org/ml/archives/dev/2018-March/091744.html

Fixes: 9a761de8ea14 ("net/mlx5: flow counter support")
Cc: stable@dpdk.org
Reported-by: Ferruh Yigit <ferruh.yigit@intel.com>
Signed-off-by: Nelio Laranjeiro <nelio.laranjeiro@6wind.com>
Acked-by: Yongseok Koh <yskoh@mellanox.com>
Tested-by: Ferruh Yigit <ferruh.yigit@intel.com>
drivers/net/mlx5/mlx5.c