• R/O
  • HTTP
  • SSH
  • HTTPS

提交

標籤
無標籤

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

修訂57fe9b4d9bd5a024896bb1d2f61cc2a8096b3e57 (tree)
時間2018-12-13 22:48:02
作者Mao Zhongyi <maozhongyi@cmss...>
CommiterPeter Maydell

Log Message

xen_backend: remove xen_sysdev_init() function

The init function doesn't do anything at all, so we
just omit it.

Cc: sstabellini@kernel.org
Cc: anthony.perard@citrix.com
Cc: xen-devel@lists.xenproject.org
Cc: peter.maydell@linaro.org

Signed-off-by: Mao Zhongyi <maozhongyi@cmss.chinamobile.com>
Signed-off-by: Zhang Shengju <zhangshengju@cmss.chinamobile.com>
Acked-by: Anthony PERARD <anthony.perard@citrix.com>
Message-id: 20181130093852.20739-21-maozhongyi@cmss.chinamobile.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>

Change Summary

差異

--- a/hw/xen/xen_backend.c
+++ b/hw/xen/xen_backend.c
@@ -809,11 +809,6 @@ static const TypeInfo xensysbus_info = {
809809 }
810810 };
811811
812-static int xen_sysdev_init(SysBusDevice *dev)
813-{
814- return 0;
815-}
816-
817812 static Property xen_sysdev_properties[] = {
818813 {/* end of property list */},
819814 };
@@ -821,9 +816,7 @@ static Property xen_sysdev_properties[] = {
821816 static void xen_sysdev_class_init(ObjectClass *klass, void *data)
822817 {
823818 DeviceClass *dc = DEVICE_CLASS(klass);
824- SysBusDeviceClass *k = SYS_BUS_DEVICE_CLASS(klass);
825819
826- k->init = xen_sysdev_init;
827820 dc->props = xen_sysdev_properties;
828821 dc->bus_type = TYPE_XENSYSBUS;
829822 }