From patchwork Tue Feb 28 03:18:11 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Gibson X-Patchwork-Id: 143323 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id B0A7EB6FA4 for ; Tue, 28 Feb 2012 14:44:42 +1100 (EST) Received: from localhost ([::1]:49143 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S2Dat-0001IJ-5t for incoming@patchwork.ozlabs.org; Mon, 27 Feb 2012 22:19:15 -0500 Received: from eggs.gnu.org ([208.118.235.92]:56296) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S2DaN-0008MJ-4a for qemu-devel@nongnu.org; Mon, 27 Feb 2012 22:18:46 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S2Da8-0000OG-QM for qemu-devel@nongnu.org; Mon, 27 Feb 2012 22:18:42 -0500 Received: from ozlabs.org ([203.10.76.45]:53973) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S2Da8-0000Nl-Ed; Mon, 27 Feb 2012 22:18:28 -0500 Received: by ozlabs.org (Postfix, from userid 1007) id 956B5B6FA9; Tue, 28 Feb 2012 14:18:22 +1100 (EST) From: David Gibson To: agraf@suse.de Date: Tue, 28 Feb 2012 14:18:11 +1100 Message-Id: <1330399093-20384-6-git-send-email-david@gibson.dropbear.id.au> X-Mailer: git-send-email 1.7.9 In-Reply-To: <1330399093-20384-1-git-send-email-david@gibson.dropbear.id.au> References: <1330399093-20384-1-git-send-email-david@gibson.dropbear.id.au> X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 203.10.76.45 Cc: Alexey Kardashevskiy , qemu-ppc@nongnu.org, qemu-devel@nongnu.org, anthony@codemonkey.ws, David Gibson Subject: [Qemu-devel] [PATCH 5/7] pseries: Remove unused constant from PCI code X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org The 'bars' constant array was used in experimental device allocation code which is no longer necessary now that we always run the SLOF firmware. This patch removes the now redundant variable. Signed-off-by: Alexey Kardashevskiy Signed-off-by: David Gibson --- hw/spapr_pci.c | 7 ------- 1 files changed, 0 insertions(+), 7 deletions(-) diff --git a/hw/spapr_pci.c b/hw/spapr_pci.c index 28a46bd..dafcd0e 100644 --- a/hw/spapr_pci.c +++ b/hw/spapr_pci.c @@ -32,13 +32,6 @@ #include "hw/pci_internals.h" -static const uint32_t bars[] = { - PCI_BASE_ADDRESS_0, PCI_BASE_ADDRESS_1, - PCI_BASE_ADDRESS_2, PCI_BASE_ADDRESS_3, - PCI_BASE_ADDRESS_4, PCI_BASE_ADDRESS_5 - /*, PCI_ROM_ADDRESS*/ -}; - static PCIDevice *find_dev(sPAPREnvironment *spapr, uint64_t buid, uint32_t config_addr) {