projects
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5256d8b
)
pci: use PCI_DEVFN in pci_get_bus_devfn()
author
Isaku Yamahata
<yamahata@valinux.co.jp>
Thu, 27 Jan 2011 06:56:38 +0000
(15:56 +0900)
committer
Michael S. Tsirkin
<mst@redhat.com>
Mon, 28 Mar 2011 16:34:22 +0000
(18:34 +0200)
Replace hardcoded logic by a common macro.
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/pci.c
patch
|
blob
|
history
diff --git
a/hw/pci.c
b/hw/pci.c
index 44a1f9e5260710d021ee418560e4a48eeb266875..df184f1829881fca0c5c9548fb9b88bdcedb93c9 100644
(file)
--- a/
hw/pci.c
+++ b/
hw/pci.c
@@
-558,7
+558,7
@@
PCIBus *pci_get_bus_devfn(int *devfnp, const char *devaddr)
return NULL;
}
- *devfnp =
slot << 3
;
+ *devfnp =
PCI_DEVFN(slot, 0)
;
return pci_find_bus(pci_find_root_bus(dom), bus);
}