mirror of https://gitee.com/openkylin/qemu.git
etsec: Replace qdev_init() by qdev_init_nofail()
etsec_create() is a helper to create and realize the eTSEC. It's currently unused. Similar helpers for other NICs use qdev_init_nofail(). Match that. Signed-off-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Andreas Färber <afaerber@suse.de>
This commit is contained in:
parent
cd7c50a48d
commit
aef0d55a4b
|
@ -443,10 +443,7 @@ DeviceState *etsec_create(hwaddr base,
|
|||
|
||||
dev = qdev_create(NULL, "eTSEC");
|
||||
qdev_set_nic_properties(dev, nd);
|
||||
|
||||
if (qdev_init(dev)) {
|
||||
return NULL;
|
||||
}
|
||||
qdev_init_nofail(dev);
|
||||
|
||||
sysbus_connect_irq(SYS_BUS_DEVICE(dev), 0, tx_irq);
|
||||
sysbus_connect_irq(SYS_BUS_DEVICE(dev), 1, rx_irq);
|
||||
|
|
Loading…
Reference in New Issue