mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 01:33:56 -06:00
qom: Don't handle impossible object_property_get_link() failure
Don't handle object_property_get_link() failure that can't happen unless the programmer screwed up, pass &error_abort. Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Message-Id: <20200707160613.848843-25-armbru@redhat.com>
This commit is contained in:
parent
552d7f49ee
commit
4d21fcd524
9 changed files with 11 additions and 78 deletions
|
@ -405,7 +405,6 @@ static void bcm2835_fb_reset(DeviceState *dev)
|
|||
static void bcm2835_fb_realize(DeviceState *dev, Error **errp)
|
||||
{
|
||||
BCM2835FBState *s = BCM2835_FB(dev);
|
||||
Error *err = NULL;
|
||||
Object *obj;
|
||||
|
||||
if (s->vcram_base == 0) {
|
||||
|
@ -413,12 +412,7 @@ static void bcm2835_fb_realize(DeviceState *dev, Error **errp)
|
|||
return;
|
||||
}
|
||||
|
||||
obj = object_property_get_link(OBJECT(dev), "dma-mr", &err);
|
||||
if (obj == NULL) {
|
||||
error_setg(errp, "%s: required dma-mr link not found: %s",
|
||||
__func__, error_get_pretty(err));
|
||||
return;
|
||||
}
|
||||
obj = object_property_get_link(OBJECT(dev), "dma-mr", &error_abort);
|
||||
|
||||
/* Fill in the parts of initial_config that are not set by QOM properties */
|
||||
s->initial_config.xres_virtual = s->initial_config.xres;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue