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 D584EA0032 for ; Mon, 15 Nov 2021 18:59:42 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id CA09A40141; Mon, 15 Nov 2021 18:59:42 +0100 (CET) Received: from mga14.intel.com (mga14.intel.com [192.55.52.115]) by mails.dpdk.org (Postfix) with ESMTP id BA84140141; Mon, 15 Nov 2021 18:59:41 +0100 (CET) X-IronPort-AV: E=McAfee;i="6200,9189,10169"; a="233735913" X-IronPort-AV: E=Sophos;i="5.87,237,1631602800"; d="scan'208";a="233735913" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Nov 2021 09:59:40 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.87,237,1631602800"; d="scan'208";a="506023993" Received: from silpixa00401160.ir.intel.com ([10.55.129.96]) by orsmga008.jf.intel.com with ESMTP; 15 Nov 2021 09:59:30 -0800 From: Conor Walsh To: ferruh.yigit@intel.com, david.marchand@redhat.com, longfengx.liang@intel.com, dev@dpdk.org Cc: david.hunt@intel.com, yipeng1.wang@intel.com, sameh.gobriel@intel.com, bruce.richardson@intel.com, vladimir.medvedkin@intel.com, hemant.agrawal@nxp.com, sachin.saxena@oss.nxp.com, fiona.trahe@intel.com, john.griffin@intel.com, deepak.k.jain@intel.com, harry.van.haaren@intel.com, ajit.khaparde@broadcom.com, somnath.kotur@broadcom.com, xuanziyang2@huawei.com, cloud.wangxiaoyun@huawei.com, sthotton@marvell.com, srinivasan@marvell.com, heinrich.kuhn@corigine.com, hkalra@marvell.com, rmody@marvell.com, dsinghrawat@marvell.com, jiawenwu@trustnetic.com, yongwang@vmware.com, john.mcnamara@intel.com, gakhil@marvell.com, roy.fan.zhang@intel.com, arkadiuszx.kusztal@intel.com, michael.baucom@broadcom.com, venkatkumar.duvvuru@broadcom.com, lance.richardson@broadcom.com, kishore.padmanabha@broadcom.com, jerin.jacob@caviumnetworks.com, mjatharakonda@oneconvergence.com, simon.horman@corigine.com, david.george@sophos.com, sony.chacko@qlogic.com, harish.patil@qlogic.com, stephen@networkplumber.org, jerinjacobk@gmail.com, Conor Walsh , stable@dpdk.org Subject: [PATCH 4/6] drivers/event/sw: fix unused but set variables Date: Mon, 15 Nov 2021 17:58:53 +0000 Message-Id: <20211115175855.1091621-5-conor.walsh@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20211115175855.1091621-1-conor.walsh@intel.com> References: <20211112140111.922171-1-conor.walsh@intel.com> <20211115175855.1091621-1-conor.walsh@intel.com> 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 This patch removes the inflights variable from the sw_dump function within the software section of the event driver as it is an unused but set variable. Bugzilla ID: 881 Fixes: c66baa68e453 ("event/sw: add dump function for easier debugging") Cc: stable@dpdk.org Reported-by: Liang Longfeng Signed-off-by: Conor Walsh Acked-by: Harry van Haaren --- drivers/event/sw/sw_evdev.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/event/sw/sw_evdev.c b/drivers/event/sw/sw_evdev.c index 070a4802e9..fa72ceb949 100644 --- a/drivers/event/sw/sw_evdev.c +++ b/drivers/event/sw/sw_evdev.c @@ -711,7 +711,6 @@ sw_dump(struct rte_eventdev *dev, FILE *f) continue; } int affinities_per_port[SW_PORTS_MAX] = {0}; - uint32_t inflights = 0; fprintf(f, " Queue %d (%s)\n", i, q_type_strings[qid->type]); fprintf(f, "\trx %"PRIu64"\tdrop %"PRIu64"\ttx %"PRIu64"\n", @@ -732,7 +731,6 @@ sw_dump(struct rte_eventdev *dev, FILE *f) for (flow = 0; flow < RTE_DIM(qid->fids); flow++) if (qid->fids[flow].cq != -1) { affinities_per_port[qid->fids[flow].cq]++; - inflights += qid->fids[flow].pcount; } uint32_t port; -- 2.25.1