From nobody Thu Sep 19 01:51:32 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.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 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (209.51.188.17 [209.51.188.17]) by mx.zohomail.com with SMTPS id 1547169976353854.4282040469335; Thu, 10 Jan 2019 17:26:16 -0800 (PST) Received: from localhost ([127.0.0.1]:49550 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ghlaB-00074W-NB for importer@patchew.org; Thu, 10 Jan 2019 20:25:59 -0500 Received: from eggs.gnu.org ([209.51.188.92]:38029) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ghlYr-0006R3-Sm for qemu-devel@nongnu.org; Thu, 10 Jan 2019 20:24:38 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ghlYq-0000sy-2B for qemu-devel@nongnu.org; Thu, 10 Jan 2019 20:24:37 -0500 Received: from zero.eik.bme.hu ([152.66.115.2]:50520) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1ghlYo-0000lG-BN for qemu-devel@nongnu.org; Thu, 10 Jan 2019 20:24:35 -0500 Received: from zero.eik.bme.hu (blah.eik.bme.hu [152.66.115.182]) by localhost (Postfix) with SMTP id 12F757456CC; Fri, 11 Jan 2019 02:24:25 +0100 (CET) Received: by zero.eik.bme.hu (Postfix, from userid 432) id 8CA177456BB; Fri, 11 Jan 2019 02:24:24 +0100 (CET) Message-Id: <1e352f091aa601fb2e19771aac46529fe278dd91.1547166960.git.balaton@eik.bme.hu> In-Reply-To: References: From: BALATON Zoltan Date: Fri, 11 Jan 2019 01:36:00 +0100 To: qemu-devel@nongnu.org X-detected-operating-system: by eggs.gnu.org: FreeBSD 9.x [fuzzy] X-Received-From: 152.66.115.2 Subject: [Qemu-devel] [PATCH 1/5] cmd646: Remove unused 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: Mark Cave-Ayland , John Snow , Richard Henderson Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" There was a pointer to PCIIDEState in CMD646BAR which was set but not used afterwards. Get rid of this unused variable. Signed-off-by: BALATON Zoltan --- hw/ide/cmd646.c | 1 - include/hw/ide/pci.h | 1 - 2 files changed, 2 deletions(-) diff --git a/hw/ide/cmd646.c b/hw/ide/cmd646.c index 6bb92d717f..41c1831f9a 100644 --- a/hw/ide/cmd646.c +++ b/hw/ide/cmd646.c @@ -123,7 +123,6 @@ static void setup_cmd646_bar(PCIIDEState *d, int bus_nu= m) CMD646BAR *bar =3D &d->cmd646_bar[bus_num]; =20 bar->bus =3D bus; - bar->pci_dev =3D d; memory_region_init_io(&bar->cmd, OBJECT(d), &cmd646_cmd_ops, bar, "cmd646-cmd", 4); memory_region_init_io(&bar->data, OBJECT(d), &cmd646_data_ops, bar, diff --git a/include/hw/ide/pci.h b/include/hw/ide/pci.h index dbc6a0383d..ed723acfb4 100644 --- a/include/hw/ide/pci.h +++ b/include/hw/ide/pci.h @@ -41,7 +41,6 @@ typedef struct CMD646BAR { MemoryRegion cmd; MemoryRegion data; IDEBus *bus; - struct PCIIDEState *pci_dev; } CMD646BAR; =20 #define TYPE_PCI_IDE "pci-ide" --=20 2.13.7