This issue was reported by PVS studio, described as:
https://pvs-studio.com/en/docs/warnings/v1048/

Signed-off-by: Rong Qian <qi...@yunsilicon.com>
Signed-off-by: Renyong Wan <wa...@yunsilicon.com>
---
 drivers/net/xsc/xsc_np.c | 4 ----
 drivers/net/xsc/xsc_tx.c | 1 -
 2 files changed, 5 deletions(-)

diff --git a/drivers/net/xsc/xsc_np.c b/drivers/net/xsc/xsc_np.c
index eff7497255..7ff39f83c9 100644
--- a/drivers/net/xsc/xsc_np.c
+++ b/drivers/net/xsc/xsc_np.c
@@ -137,10 +137,6 @@ xsc_rss_hash_template_get(struct rte_eth_rss_conf 
*rss_conf)
                rss_hf &= ~XSC_RSS_HASH_BIT_IPV6_SPORT;
        }
 
-       if ((rss_conf->rss_hf & RTE_ETH_RSS_LEVEL_PMD_DEFAULT) ||
-           (rss_conf->rss_hf & RTE_ETH_RSS_LEVEL_OUTERMOST))
-               outer = 1;
-
        if (rss_conf->rss_hf & RTE_ETH_RSS_LEVEL_INNERMOST)
                outer = 0;
 
diff --git a/drivers/net/xsc/xsc_tx.c b/drivers/net/xsc/xsc_tx.c
index 0d6a9981d0..d1a0f3284b 100644
--- a/drivers/net/xsc/xsc_tx.c
+++ b/drivers/net/xsc/xsc_tx.c
@@ -215,7 +215,6 @@ xsc_tx_wqe_ctrl_seg_init(struct xsc_txq_data 
*__rte_restrict txq,
                cs->csum_en = 0;
 
        if (txq->tso_en == 1 && (mbuf->ol_flags & RTE_MBUF_F_TX_TCP_SEG)) {
-               cs->has_pph = 0;
                cs->so_type = 1;
                cs->so_hdr_len = mbuf->l2_len + mbuf->l3_len + mbuf->l4_len;
                cs->so_data_size = rte_cpu_to_le_16(mbuf->tso_segsz);
-- 
2.25.1

Reply via email to