From nobody Tue Apr 30 00:20:47 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) client-ip=208.118.235.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of gnu.org designates 208.118.235.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (208.118.235.17 [208.118.235.17]) by mx.zohomail.com with SMTPS id 1516853760801588.890350139242; Wed, 24 Jan 2018 20:16:00 -0800 (PST) Received: from localhost ([::1]:41043 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eeYx7-0000KV-VR for importer@patchew.org; Wed, 24 Jan 2018 23:15:54 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42300) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eeYw6-0008FF-O1 for qemu-devel@nongnu.org; Wed, 24 Jan 2018 23:14:51 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1eeYw2-0007mb-Px for qemu-devel@nongnu.org; Wed, 24 Jan 2018 23:14:50 -0500 Received: from ozlabs.ru ([107.173.13.209]:54240) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1eeYw2-0007lU-KB for qemu-devel@nongnu.org; Wed, 24 Jan 2018 23:14:46 -0500 Received: from vpl1.ozlabs.ibm.com (localhost [IPv6:::1]) by ozlabs.ru (Postfix) with ESMTP id 5CDC63A60008; Wed, 24 Jan 2018 23:14:05 -0500 (EST) From: Alexey Kardashevskiy To: qemu-devel@nongnu.org Date: Thu, 25 Jan 2018 15:14:11 +1100 Message-Id: <20180125041411.6647-1-aik@ozlabs.ru> X-Mailer: git-send-email 2.11.0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 107.173.13.209 Subject: [Qemu-devel] [PATCH qemu] vfio/common: Remove redundand copy of local variable X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Alexey Kardashevskiy , Alex Williamson Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail: RSF_0 Z_629925259 SPT_0 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" There is already @hostwin in vfio_listener_region_add() so there is no point in having the other one. Fixes: 2e4109de "vfio/spapr: Create DMA window dynamically (SPAPR IOMMU v2)" Signed-off-by: Alexey Kardashevskiy Reviewed-by: Eric Auger --- hw/vfio/common.c | 1 - 1 file changed, 1 deletion(-) diff --git a/hw/vfio/common.c b/hw/vfio/common.c index b77be3a..3d652c8 100644 --- a/hw/vfio/common.c +++ b/hw/vfio/common.c @@ -435,7 +435,6 @@ static void vfio_listener_region_add(MemoryListener *li= stener, end =3D int128_get64(int128_sub(llend, int128_one())); =20 if (container->iommu_type =3D=3D VFIO_SPAPR_TCE_v2_IOMMU) { - VFIOHostDMAWindow *hostwin; hwaddr pgsize =3D 0; =20 /* For now intersections are not allowed, we may relax this later = */ --=20 2.11.0