From: Chengchang Tang Date: Sat, 17 Jul 2021 02:02:53 +0000 (+0800) Subject: net/hns3: remove duplicate compile-time check X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=6c1e3b603bc0eca52b50d4cde23d25061749ca25;p=dpdk.git net/hns3: remove duplicate compile-time check This patch delete duplicate compile-time check. Fixes: cb12e988f35f ("net/hns3: add compile-time verification on Rx vector") Cc: stable@dpdk.org Signed-off-by: Chengchang Tang Signed-off-by: Min Hu (Connor) --- diff --git a/drivers/net/hns3/hns3_rxtx_vec.c b/drivers/net/hns3/hns3_rxtx_vec.c index cc8b9706a8..844512f6ce 100644 --- a/drivers/net/hns3/hns3_rxtx_vec.c +++ b/drivers/net/hns3/hns3_rxtx_vec.c @@ -172,8 +172,6 @@ hns3_rxq_vec_setup_rearm_data(struct hns3_rx_queue *rxq) offsetof(struct rte_mbuf, rearm_data)); RTE_BUILD_BUG_ON(offsetof(struct rte_mbuf, refcnt) < offsetof(struct rte_mbuf, rearm_data)); - RTE_BUILD_BUG_ON(offsetof(struct rte_mbuf, refcnt) < - offsetof(struct rte_mbuf, rearm_data)); RTE_BUILD_BUG_ON(offsetof(struct rte_mbuf, nb_segs) < offsetof(struct rte_mbuf, rearm_data)); RTE_BUILD_BUG_ON(offsetof(struct rte_mbuf, port) < @@ -182,8 +180,6 @@ hns3_rxq_vec_setup_rearm_data(struct hns3_rx_queue *rxq) offsetof(struct rte_mbuf, rearm_data) > 6); RTE_BUILD_BUG_ON(offsetof(struct rte_mbuf, refcnt) - offsetof(struct rte_mbuf, rearm_data) > 6); - RTE_BUILD_BUG_ON(offsetof(struct rte_mbuf, refcnt) - - offsetof(struct rte_mbuf, rearm_data) > 6); RTE_BUILD_BUG_ON(offsetof(struct rte_mbuf, nb_segs) - offsetof(struct rte_mbuf, rearm_data) > 6); RTE_BUILD_BUG_ON(offsetof(struct rte_mbuf, port) -