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 A7FF541C38 for ; Wed, 8 Feb 2023 06:38:29 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 84C7440DFD; Wed, 8 Feb 2023 06:38:29 +0100 (CET) Received: from mga06.intel.com (mga06b.intel.com [134.134.136.31]) by mails.dpdk.org (Postfix) with ESMTP id 201D040141 for ; Wed, 8 Feb 2023 06:38:27 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1675834708; x=1707370708; h=from:to:cc:subject:date:message-id:mime-version: content-transfer-encoding; bh=u6c6xuObbZjtGbI0ar+Y+dkRdcTn5r2UkHePVOyoogw=; b=Ai0/zq/MtAKSM32L37Pib3JwVgR2iawpgu1vpa7320fz9Mq8+HIsa5gt 2QTQt3VPCFBHKn00XxtdBmxf0/4wB7NSgb6gAKTpBhgNWnQ74mTZmNcVw 3FBJcvR4EdjEL4rv9gYlEEfky6aZPamkocxz7HsL9S9aT2ZDfEZP3rTgh PfDCFluhWJb0xz1A1ymk9jyi9+26059xVRdem9qV33mimIJaAk7kSbuP1 AERr8aVCXNswNOA5tml9ZBoqOi761H1aUXrobEjbCpmveIUkTCKB8Hzl8 8oTGKSUfkJEIvg9gdLPK0uKsUlcDv1fpIlZZslxZ5nvABf24jK/tqkche g==; X-IronPort-AV: E=McAfee;i="6500,9779,10614"; a="392114767" X-IronPort-AV: E=Sophos;i="5.97,280,1669104000"; d="scan'208";a="392114767" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Feb 2023 21:38:26 -0800 X-IronPort-AV: E=McAfee;i="6500,9779,10614"; a="669052234" X-IronPort-AV: E=Sophos;i="5.97,280,1669104000"; d="scan'208";a="669052234" Received: from unknown (HELO localhost.localdomain) ([10.239.252.104]) by fmsmga007-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Feb 2023 21:38:24 -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] app/testpmd: fix compile error Date: Wed, 8 Feb 2023 13:23:40 +0800 Message-Id: <20230208052340.159017-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