Skip to contentSkip to conversation

Change init for pt_pci_host return value.

PATCH New Jean Guyader 1 participant 1 message Jan 16, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Change init for pt_pci_host return value.

With an init of -1 all the return value smaller than a double word will be prefixed with "f"s.

---
 hw/pass-through.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
hw/pass-through.c +1 -1
index dbe8804..6a77657 100644
@@ -2085,7 +2085,7 @@ struct pci_dev *pt_pci_get_dev(int bus, int dev, int fn)
 
 u32 pt_pci_host_read(struct pci_dev *pci_dev, u32 addr, int len)
 {
-    u32 val = -1;
+    u32 val = 0;
 
     pci_access_init();
     pci_read_block(pci_dev, addr, (u8 *) &val, len);

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel