net/mlx5: remove redundant item from union
authorDekel Peled <dekelp@mellanox.com>
Mon, 22 Jul 2019 14:51:58 +0000 (14:51 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 23 Jul 2019 12:31:36 +0000 (14:31 +0200)
A variable of type struct ibv_cq_ex is declared in 2 unions, but
isn't used.
This patch removes the 2 redundant declarations.

Fixes: 6218063b39a6 ("net/mlx5: refactor Rx data path")
Fixes: 1d88ba171942 ("net/mlx5: refactor Tx data path")
Cc: stable@dpdk.org
Signed-off-by: Dekel Peled <dekelp@mellanox.com>
Acked-by: Matan Azrad <matan@mellanox.com>
Acked-by: Viacheslav Ovsiienko <viacheslavo@mellanox.com>
drivers/net/mlx5/mlx5_rxq.c
drivers/net/mlx5/mlx5_txq.c

index 39b8b7a..0535ce3 100644 (file)
@@ -839,7 +839,6 @@ mlx5_rxq_ibv_new(struct rte_eth_dev *dev, uint16_t idx)
                        struct mlx5dv_wq_init_attr mlx5;
 #endif
                } wq;
-               struct ibv_cq_ex cq_attr;
        } attr;
        unsigned int cqe_n;
        unsigned int wqe_n = 1 << rxq_data->elts_n;
index 2f3aa5b..dbad361 100644 (file)
@@ -388,7 +388,6 @@ mlx5_txq_ibv_new(struct rte_eth_dev *dev, uint16_t idx)
                struct ibv_qp_init_attr_ex init;
                struct ibv_cq_init_attr_ex cq;
                struct ibv_qp_attr mod;
-               struct ibv_cq_ex cq_attr;
        } attr;
        unsigned int cqe_n;
        struct mlx5dv_qp qp = { .comp_mask = MLX5DV_QP_MASK_UAR_MMAP_OFFSET };