pci core: function pci_host_bus_register() cleanup
authorCao jin <caoj.fnst@cn.fujitsu.com>
Wed, 27 Jan 2016 10:29:01 +0000 (18:29 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 25 Feb 2016 11:14:18 +0000 (13:14 +0200)
remove unused param, and rename the other to a meaningful one.

Signed-off-by: Cao jin <caoj.fnst@cn.fujitsu.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
hw/pci/pci.c

index b282120b1286451b8fb8f58042e59034f9bdb4cd..b071361f8115a520e62ff4dc1408e32e7942df0e 100644 (file)
@@ -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)