From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MO5TJ-0003bI-11 for qemu-devel@nongnu.org; Tue, 07 Jul 2009 03:52:13 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MO5TD-0003ZY-B7 for qemu-devel@nongnu.org; Tue, 07 Jul 2009 03:52:11 -0400 Received: from [199.232.76.173] (port=42026 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MO5TD-0003ZU-5d for qemu-devel@nongnu.org; Tue, 07 Jul 2009 03:52:07 -0400 Received: from mx20.gnu.org ([199.232.41.8]:55493) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MO5TC-0004by-8r for qemu-devel@nongnu.org; Tue, 07 Jul 2009 03:52:06 -0400 Received: from mail.valinux.co.jp ([210.128.90.3]) by mx20.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MO5T9-0006tF-2v for qemu-devel@nongnu.org; Tue, 07 Jul 2009 03:52:03 -0400 From: Isaku Yamahata Date: Tue, 7 Jul 2009 15:59:24 +0900 Message-Id: <1246949967-4778-4-git-send-email-yamahata@valinux.co.jp> In-Reply-To: <1246949967-4778-1-git-send-email-yamahata@valinux.co.jp> References: <1246949967-4778-1-git-send-email-yamahata@valinux.co.jp> Subject: [Qemu-devel] [PATCH 3/6] pci: minor clean up of pci_update_mappings(). List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: yamahata@valinux.co.jp use uint8_t for pci command register instead of int. Signed-off-by: Isaku Yamahata --- hw/pci.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/hw/pci.c b/hw/pci.c index 289a62f..7c7bab5 100644 --- a/hw/pci.c +++ b/hw/pci.c @@ -419,7 +419,8 @@ void pci_register_bar(PCIDevice *pci_dev, int region_num, static void pci_update_mappings(PCIDevice *d) { PCIIORegion *r; - int cmd, i; + int i; + uint16_t cmd; uint32_t last_addr, new_addr, config_ofs; cmd = le16_to_cpu(*(uint16_t *)(d->config + PCI_COMMAND)); -- 1.6.0.2