From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 8E5F641C3A for ; Wed, 8 Feb 2023 07:00:13 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 6762B40DFD; Wed, 8 Feb 2023 07:00:13 +0100 (CET) Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by mails.dpdk.org (Postfix) with ESMTP id DB2E340141 for ; Wed, 8 Feb 2023 07:00:11 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1675836012; x=1707372012; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=u6c6xuObbZjtGbI0ar+Y+dkRdcTn5r2UkHePVOyoogw=; b=NZCSM5aF0wTywGioek7g49DtoJ0+Vhb3Hi6y++P+nnDT1h+46/+ayGhu tnOY5T45AOti29jwIxp6m6Y5Tt8Zd2bzVE/s3BaCB1IeMpJbYfSU76VWa F8t8mkuAg5HkAbiieEW7VCwiNlphtgSCTAaGy18KXsr4/hFFQaIbiRaWx ApBqQSEBncY9p26NFQbqmh1D5/iw7+242WpLbFPEA0ZHu2XU8ClW1IV2n jAOPHjZ3Ev0heDDz3NPi4VdHUIV8fzccelzQRVgH2TkyDGNLGqztub/nN 57upl1mZzKs5vh51WXbpX/JVSPwUce0ZY8a2VtMK8lGZNYFzAMrYF6WN3 g==; X-IronPort-AV: E=McAfee;i="6500,9779,10614"; a="327415356" X-IronPort-AV: E=Sophos;i="5.97,280,1669104000"; d="scan'208";a="327415356" Received: from orsmga004.jf.intel.com ([10.7.209.38]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Feb 2023 22:00:10 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10614"; a="791079095" X-IronPort-AV: E=Sophos;i="5.97,280,1669104000"; d="scan'208";a="791079095" Received: from unknown (HELO localhost.localdomain) ([10.239.252.104]) by orsmga004-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Feb 2023 22:00:08 -0800 From: Ke Zhang To: stable@dpdk.org, wenzhuo.lu@intel.com, jingjing.wu@intel.com, bernard.iremonger@intel.com Cc: Ke Zhang Subject: [PATCH 19.11.14-rc1 LTS] app/testpmd: fix compile error Date: Wed, 8 Feb 2023 13:45:18 +0800 Message-Id: <20230208054518.159406-1-ke1x.zhang@intel.com> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-bounces@dpdk.org [ upstream commit f99f2e55af7a49a6ee6555a5554847094086017f] variable 'c' is set but not used, it should be cleard. Fixes: 938a184a1870 ("app/testpmd: implement basic support for flow API") Signed-off-by: Ke Zhang --- app/test-pmd/config.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/app/test-pmd/config.c b/app/test-pmd/config.c index 9f96e77ba3..a04ce0ec64 100644 --- a/app/test-pmd/config.c +++ b/app/test-pmd/config.c @@ -1457,7 +1457,6 @@ port_flow_destroy(portid_t port_id, uint32_t n, const uint32_t *rule) { struct rte_port *port; struct port_flow **tmp; - uint32_t c = 0; int ret = 0; if (port_id_is_invalid(port_id, ENABLED_WARN) || @@ -1490,7 +1489,6 @@ port_flow_destroy(portid_t port_id, uint32_t n, const uint32_t *rule) } if (i == n) tmp = &(*tmp)->next; - ++c; } return ret; } -- 2.25.1