From patchwork Mon Nov 15 17:58:52 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Conor Walsh X-Patchwork-Id: 104338 X-Patchwork-Delegate: david.marchand@redhat.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id AF3BCA0032; Mon, 15 Nov 2021 18:59:47 +0100 (CET) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 2CE5C41161; Mon, 15 Nov 2021 18:59:46 +0100 (CET) Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by mails.dpdk.org (Postfix) with ESMTP id 193C741144; Mon, 15 Nov 2021 18:59:41 +0100 (CET) X-IronPort-AV: E=McAfee;i="6200,9189,10169"; a="232214962" X-IronPort-AV: E=Sophos;i="5.87,237,1631602800"; d="scan'208";a="232214962" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Nov 2021 09:59:30 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.87,237,1631602800"; d="scan'208";a="506023932" Received: from silpixa00401160.ir.intel.com ([10.55.129.96]) by orsmga008.jf.intel.com with ESMTP; 15 Nov 2021 09:59:22 -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 3/6] drivers/common/qat: fix unused but set variables Date: Mon, 15 Nov 2021 17:58:52 +0000 Message-Id: <20211115175855.1091621-4-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 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org This patch removes the us variable from the qat_pf2vf_exch_msg function within the PF to VF section of the QAT driver as it is an unused but set variable. Bugzilla ID: 881 Fixes: b17d16fb47b4 ("common/qat: add PF to VF communication") Cc: stable@dpdk.org Reported-by: Liang Longfeng Signed-off-by: Conor Walsh --- drivers/common/qat/qat_pf2vf.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/common/qat/qat_pf2vf.c b/drivers/common/qat/qat_pf2vf.c index 6327311199..4e9ffc72fc 100644 --- a/drivers/common/qat/qat_pf2vf.c +++ b/drivers/common/qat/qat_pf2vf.c @@ -54,14 +54,12 @@ int qat_pf2vf_exch_msg(struct qat_pci_device *qat_dev, msg |= ADF_PFVF_INT | ADF_PFVF_MSGORIGIN_SYSTEM; ADF_CSR_WR(pmisc_bar_addr, vf_csr_off, msg); - int us = 0; /* * Wait for confirmation from remote that it received * the message */ do { rte_delay_us_sleep(5); - us += 5; val = ADF_CSR_RD(pmisc_bar_addr, vf_csr_off); } while ((val & ADF_PFVF_INT) && (++count < ADF_IOV_MSG_ACK_MAX_RETRY));