qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 3/6] pci: minor clean up of pci_update_mappings().


From: Isaku Yamahata
Subject: [Qemu-devel] [PATCH 3/6] pci: minor clean up of pci_update_mappings().
Date: Tue, 7 Jul 2009 15:59:24 +0900

use uint8_t for pci command register instead of int.

Signed-off-by: Isaku Yamahata <address@hidden>
---
 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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]