From 9ef2627cf64d4316224ca2de983fc32db9ed23c4 Mon Sep 17 00:00:00 2001 From: Fan Zhang Date: Fri, 18 Sep 2020 09:23:10 +0100 Subject: [PATCH] port: remove useless assignment This patch fixes an unused value in pcap source port by removing the setting to the value. Coverity issue: 362020 Fixes: d4b42133d85b ("port: add pcap file source") Cc: stable@dpdk.org Signed-off-by: Fan Zhang --- lib/librte_port/rte_port_source_sink.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/librte_port/rte_port_source_sink.c b/lib/librte_port/rte_port_source_sink.c index 74b7385a28..68575c9833 100644 --- a/lib/librte_port/rte_port_source_sink.c +++ b/lib/librte_port/rte_port_source_sink.c @@ -116,7 +116,7 @@ pcap_source_load(struct rte_port_source *port, } for (i = 0; i < n_pkts; i++) { - pkt = pcap_next(pcap_handle, &pcap_hdr); + pcap_next(pcap_handle, &pcap_hdr); port->pkt_len[i] = RTE_MIN(max_len, pcap_hdr.len); pkt_len_aligns[i] = RTE_CACHE_LINE_ROUNDUP( port->pkt_len[i]); -- 2.20.1