From: Fan Zhang Date: Fri, 18 Sep 2020 08:23:10 +0000 (+0100) Subject: port: remove useless assignment X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=9ef2627cf64d4316224ca2de983fc32db9ed23c4;p=dpdk.git 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 --- 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]);