From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=55469 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Optys-0004XJ-Ha for qemu-devel@nongnu.org; Sun, 29 Aug 2010 22:20:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Optyr-0005lo-8g for qemu-devel@nongnu.org; Sun, 29 Aug 2010 22:20:18 -0400 Received: from mail.valinux.co.jp ([210.128.90.3]:44842) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Optyr-0005lV-17 for qemu-devel@nongnu.org; Sun, 29 Aug 2010 22:20:17 -0400 Date: Mon, 30 Aug 2010 11:32:01 +0900 From: Isaku Yamahata Message-ID: <20100830023201.GB22847@valinux.co.jp> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Subject: [Qemu-devel] [PATCH] pciinit: remove unused variable, old_addr, in pci_set_io_region_addr(). List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: seabios@seabios.org Cc: Cam Macdonell , qemu-devel@nongnu.org old_addr is initialized, but not used. remove the useless variable. Signed-off-by: Isaku Yamahata --- src/pciinit.c | 4 +--- 1 files changed, 1 insertions(+), 3 deletions(-) diff --git a/src/pciinit.c b/src/pciinit.c index f75e552..0346423 100644 --- a/src/pciinit.c +++ b/src/pciinit.c @@ -39,12 +39,10 @@ static u32 pci_bar(u16 bdf, int region_num) static void pci_set_io_region_addr(u16 bdf, int region_num, u32 addr) { - u32 ofs, old_addr; + u32 ofs; ofs = pci_bar(bdf, region_num); - old_addr = pci_config_readl(bdf, ofs); - pci_config_writel(bdf, ofs, addr); dprintf(1, "region %d: 0x%08x\n", region_num, addr); } -- 1.7.1.1