mirror of
https://github.com/qemu/qemu.git
synced 2024-11-26 12:23:36 +08:00
qdev: remove an unused function
qbus_reset_all is unused, remove it Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
This commit is contained in:
parent
80376c3fc2
commit
f530cce315
@ -328,15 +328,10 @@ void qdev_reset_all(DeviceState *dev)
|
||||
qdev_walk_children(dev, qdev_reset_one, qbus_reset_one, NULL);
|
||||
}
|
||||
|
||||
void qbus_reset_all(BusState *bus)
|
||||
{
|
||||
qbus_walk_children(bus, qdev_reset_one, qbus_reset_one, NULL);
|
||||
}
|
||||
|
||||
void qbus_reset_all_fn(void *opaque)
|
||||
{
|
||||
BusState *bus = opaque;
|
||||
qbus_reset_all(bus);
|
||||
qbus_walk_children(bus, qdev_reset_one, qbus_reset_one, NULL);
|
||||
}
|
||||
|
||||
/* can be used as ->unplug() callback for the simple cases */
|
||||
|
@ -198,7 +198,6 @@ int qbus_walk_children(BusState *bus, qdev_walkerfn *devfn,
|
||||
int qdev_walk_children(DeviceState *dev, qdev_walkerfn *devfn,
|
||||
qbus_walkerfn *busfn, void *opaque);
|
||||
void qdev_reset_all(DeviceState *dev);
|
||||
void qbus_reset_all(BusState *bus);
|
||||
void qbus_reset_all_fn(void *opaque);
|
||||
|
||||
void qbus_free(BusState *bus);
|
||||
|
Loading…
Reference in New Issue
Block a user