[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PULL 08/23] pci core: function pci_host_bus_register() cle
From: |
Michael S. Tsirkin |
Subject: |
[Qemu-devel] [PULL 08/23] pci core: function pci_host_bus_register() cleanup |
Date: |
Wed, 24 Feb 2016 22:35:31 +0200 |
From: Cao jin <address@hidden>
remove unused param, and rename the other to a meaningful one.
Signed-off-by: Cao jin <address@hidden>
Reviewed-by: Michael S. Tsirkin <address@hidden>
Signed-off-by: Michael S. Tsirkin <address@hidden>
Reviewed-by: Eduardo Habkost <address@hidden>
---
hw/pci/pci.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/hw/pci/pci.c b/hw/pci/pci.c
index b282120..b071361 100644
--- a/hw/pci/pci.c
+++ b/hw/pci/pci.c
@@ -278,9 +278,9 @@ static void pcibus_reset(BusState *qbus)
}
}
-static void pci_host_bus_register(PCIBus *bus, DeviceState *parent)
+static void pci_host_bus_register(DeviceState *host)
{
- PCIHostState *host_bridge = PCI_HOST_BRIDGE(parent);
+ PCIHostState *host_bridge = PCI_HOST_BRIDGE(host);
QLIST_INSERT_HEAD(&pci_host_bridges, host_bridge, next);
}
@@ -344,7 +344,7 @@ static void pci_bus_init(PCIBus *bus, DeviceState *parent,
/* host bridge */
QLIST_INIT(&bus->child);
- pci_host_bus_register(bus, parent);
+ pci_host_bus_register(parent);
}
bool pci_bus_is_express(PCIBus *bus)
--
MST
- [Qemu-devel] [PULL 00/23] vhost, virtio, pci, pc, Michael S. Tsirkin, 2016/02/24
- [Qemu-devel] [PULL 02/23] vhost-user: don't merge regions with different fds, Michael S. Tsirkin, 2016/02/24
- [Qemu-devel] [PULL 01/23] bios-linker-loader: document+validate input, Michael S. Tsirkin, 2016/02/24
- [Qemu-devel] [PULL 03/23] move get_current_ram_size to virtio-balloon.c, Michael S. Tsirkin, 2016/02/24
- [Qemu-devel] [PULL 04/23] pc-dimm: rename pc_dimm_built_list(), Michael S. Tsirkin, 2016/02/24
- [Qemu-devel] [PULL 05/23] pc-dimm: add pc_dimm_build_list(), Michael S. Tsirkin, 2016/02/24
- [Qemu-devel] [PULL 06/23] virtio-balloon: rewrite get_current_ram_size(), Michael S. Tsirkin, 2016/02/24
- [Qemu-devel] [PULL 07/23] balloon: Use only 'pc-dimm' type dimm for ballooning, Michael S. Tsirkin, 2016/02/24
- [Qemu-devel] [PULL 08/23] pci core: function pci_host_bus_register() cleanup,
Michael S. Tsirkin <=
- [Qemu-devel] [PULL 09/23] pci core: function pci_bus_init() cleanup, Michael S. Tsirkin, 2016/02/24
- [Qemu-devel] [PULL 10/23] block-migration: acquire AioContext as necessary, Michael S. Tsirkin, 2016/02/24
- [Qemu-devel] [PULL 11/23] vring: make vring_enable_notification return void, Michael S. Tsirkin, 2016/02/24
- [Qemu-devel] [PULL 12/23] virtio: add AioContext-specific function for host notifiers, Michael S. Tsirkin, 2016/02/24
- [Qemu-devel] [PULL 13/23] virtio: export vring_notify as virtio_should_notify, Michael S. Tsirkin, 2016/02/24
- [Qemu-devel] [PULL 14/23] virtio-blk: fix "disabled data plane" mode, Michael S. Tsirkin, 2016/02/24
- [Qemu-devel] [PULL 16/23] virtio-scsi: do not use vring in dataplane, Michael S. Tsirkin, 2016/02/24
- [Qemu-devel] [PULL 15/23] virtio-blk: do not use vring in dataplane, Michael S. Tsirkin, 2016/02/24
- [Qemu-devel] [PULL 17/23] vring: remove, Michael S. Tsirkin, 2016/02/24
- [Qemu-devel] [PULL 18/23] tests/vhost-user-bridge: fix build on 32 bit systems, Michael S. Tsirkin, 2016/02/24