From: Michael S. Tsirkin Date: Mon, 20 Dec 2010 13:17:10 +0000 (+0200) Subject: qdev: remove an unused function X-Git-Tag: TizenStudio_2.0_p2.3~3480^2~33 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a08967cb302aa3b21b0d788c15cf112e870fffbe;p=sdk%2Femulator%2Fqemu.git qdev: remove an unused function qbus_reset_all is unused, remove it Signed-off-by: Michael S. Tsirkin --- diff --git a/hw/qdev.c b/hw/qdev.c index d93a6c4..4747c67 100644 --- a/hw/qdev.c +++ b/hw/qdev.c @@ -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 */ diff --git a/hw/qdev.h b/hw/qdev.h index b239bb4..5f5a319 100644 --- a/hw/qdev.h +++ b/hw/qdev.h @@ -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);