net/iavf: delete unused value

Message ID 20200511083655.92942-1-leyi.rong@intel.com (mailing list archive)
State Accepted, archived
Delegated to: xiaolong ye
Headers
Series net/iavf: delete unused value |

Checks

Context Check Description
ci/checkpatch success coding style OK
ci/travis-robot success Travis build: passed
ci/Intel-compilation success Compilation OK
ci/iol-intel-Performance success Performance Testing PASS
ci/iol-nxp-Performance success Performance Testing PASS
ci/iol-mellanox-Performance success Performance Testing PASS
ci/iol-testing fail Testing issues

Commit Message

Leyi Rong May 11, 2020, 8:36 a.m. UTC
  Fix coverity defects of unused value.

Coverity issue: 357745, 357769

Fixes: b8b4c54ef9b0 ("net/iavf: support flexible Rx descriptor in normal path")

Signed-off-by: Leyi Rong <leyi.rong@intel.com>
---
 drivers/net/iavf/iavf_rxtx.c | 4 ----
 1 file changed, 4 deletions(-)
  

Comments

Xiaolong Ye May 12, 2020, 5:44 a.m. UTC | #1
On 05/11, Leyi Rong wrote:
>Fix coverity defects of unused value.
>
>Coverity issue: 357745, 357769
>
>Fixes: b8b4c54ef9b0 ("net/iavf: support flexible Rx descriptor in normal path")
>
>Signed-off-by: Leyi Rong <leyi.rong@intel.com>
>---
> drivers/net/iavf/iavf_rxtx.c | 4 ----
> 1 file changed, 4 deletions(-)
>
>diff --git a/drivers/net/iavf/iavf_rxtx.c b/drivers/net/iavf/iavf_rxtx.c
>index 2cf70d929..05a7dd898 100644
>--- a/drivers/net/iavf/iavf_rxtx.c
>+++ b/drivers/net/iavf/iavf_rxtx.c
>@@ -958,7 +958,6 @@ iavf_recv_pkts(void *rx_queue, struct rte_mbuf **rx_pkts, uint16_t nb_pkts)
> 			rte_prefetch0(rxq->sw_ring[rx_id]);
> 		}
> 		rxm = rxe;
>-		rxe = nmb;
> 		dma_addr =
> 			rte_cpu_to_le_64(rte_mbuf_data_iova_default(nmb));
> 		rxdp->read.hdr_addr = 0;
>@@ -1064,7 +1063,6 @@ iavf_recv_pkts_flex_rxd(void *rx_queue,
> 			rte_prefetch0(rxq->sw_ring[rx_id]);
> 		}
> 		rxm = rxe;
>-		rxe = nmb;
> 		dma_addr =
> 			rte_cpu_to_le_64(rte_mbuf_data_iova_default(nmb));
> 		rxdp->read.hdr_addr = 0;
>@@ -1157,7 +1155,6 @@ iavf_recv_scattered_pkts_flex_rxd(void *rx_queue, struct rte_mbuf **rx_pkts,
> 		}
> 
> 		rxm = rxe;
>-		rxe = nmb;
> 		dma_addr =
> 			rte_cpu_to_le_64(rte_mbuf_data_iova_default(nmb));
> 
>@@ -1311,7 +1308,6 @@ iavf_recv_scattered_pkts(void *rx_queue, struct rte_mbuf **rx_pkts,
> 		}
> 
> 		rxm = rxe;
>-		rxe = nmb;
> 		dma_addr =
> 			rte_cpu_to_le_64(rte_mbuf_data_iova_default(nmb));
> 
>-- 
>2.17.1
>

Acked-by: Xiaolong Ye <xiaolong.ye@intel.com>

Applied to dpdk-next-net-intel, Thanks.
  

Patch

diff --git a/drivers/net/iavf/iavf_rxtx.c b/drivers/net/iavf/iavf_rxtx.c
index 2cf70d929..05a7dd898 100644
--- a/drivers/net/iavf/iavf_rxtx.c
+++ b/drivers/net/iavf/iavf_rxtx.c
@@ -958,7 +958,6 @@  iavf_recv_pkts(void *rx_queue, struct rte_mbuf **rx_pkts, uint16_t nb_pkts)
 			rte_prefetch0(rxq->sw_ring[rx_id]);
 		}
 		rxm = rxe;
-		rxe = nmb;
 		dma_addr =
 			rte_cpu_to_le_64(rte_mbuf_data_iova_default(nmb));
 		rxdp->read.hdr_addr = 0;
@@ -1064,7 +1063,6 @@  iavf_recv_pkts_flex_rxd(void *rx_queue,
 			rte_prefetch0(rxq->sw_ring[rx_id]);
 		}
 		rxm = rxe;
-		rxe = nmb;
 		dma_addr =
 			rte_cpu_to_le_64(rte_mbuf_data_iova_default(nmb));
 		rxdp->read.hdr_addr = 0;
@@ -1157,7 +1155,6 @@  iavf_recv_scattered_pkts_flex_rxd(void *rx_queue, struct rte_mbuf **rx_pkts,
 		}
 
 		rxm = rxe;
-		rxe = nmb;
 		dma_addr =
 			rte_cpu_to_le_64(rte_mbuf_data_iova_default(nmb));
 
@@ -1311,7 +1308,6 @@  iavf_recv_scattered_pkts(void *rx_queue, struct rte_mbuf **rx_pkts,
 		}
 
 		rxm = rxe;
-		rxe = nmb;
 		dma_addr =
 			rte_cpu_to_le_64(rte_mbuf_data_iova_default(nmb));