port: remove useless assignment
authorFan Zhang <roy.fan.zhang@intel.com>
Fri, 18 Sep 2020 08:23:10 +0000 (09:23 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Tue, 6 Oct 2020 21:39:34 +0000 (23:39 +0200)
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 <roy.fan.zhang@intel.com>
lib/librte_port/rte_port_source_sink.c

index 74b7385..68575c9 100644 (file)
@@ -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]);