]> git.proxmox.com Git - mirror_qemu.git/commit - hw/pcie_host.c
pci: simplify (pci_/pcie_mmcfg_)data_read()
authorMichael S. Tsirkin <mst@redhat.com>
Thu, 12 Nov 2009 05:58:31 +0000 (14:58 +0900)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 1 Dec 2009 15:51:21 +0000 (17:51 +0200)
commit4677d8ed9db8564fb0b02c1d012d4b25de633290
tree4e3e32499b56626875e43864468716dc0ea7c7b9
parentb6243d991a4d073b2c8c16737fec9ee74274bfeb
pci: simplify (pci_/pcie_mmcfg_)data_read()

Remove switch on length: we don't care about
high bits for value, so just return all ones
if no device.  And add one assert().

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Acked-by: Isaku Yamahata <yamahata@valinux.co.jp>
hw/pci_host.c
hw/pcie_host.c