From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id C7D87A04C8; Fri, 18 Sep 2020 10:23:25 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 3128D1D918; Fri, 18 Sep 2020 10:23:25 +0200 (CEST) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by dpdk.org (Postfix) with ESMTP id F38A71D917; Fri, 18 Sep 2020 10:23:22 +0200 (CEST) IronPort-SDR: dcZxeXN/xhXRLU+Tr6fcLNJlkjsA/BfayLQGstHuhrsZKsv1Q2rkx5gT8dJfTqW4R/A48xr3TQ +l7k3oS36FsQ== X-IronPort-AV: E=McAfee;i="6000,8403,9747"; a="157279025" X-IronPort-AV: E=Sophos;i="5.77,274,1596524400"; d="scan'208";a="157279025" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Sep 2020 01:23:19 -0700 IronPort-SDR: Bq+l6CnkonRxLQ7/9kAIEIJA1oQDDfm3yieMJZC79x5CUH8a06FdYXB+Q4b5ej46zkLHnlnhCV VU6GXZR7M1tg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.77,274,1596524400"; d="scan'208";a="508777883" Received: from silpixa00398673.ir.intel.com (HELO silpixa00398673.ger.corp.intel.com) ([10.237.223.136]) by fmsmga005.fm.intel.com with ESMTP; 18 Sep 2020 01:23:17 -0700 From: Fan Zhang To: dev@dpdk.org Cc: Fan Zhang , stable@dpdk.org Date: Fri, 18 Sep 2020 09:23:10 +0100 Message-Id: <20200918082310.84786-1-roy.fan.zhang@intel.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [dpdk-dev] port: fix unused value X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" 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: roy.fan.zhang@intel.com 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 74b7385a2..68575c983 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