mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
qdev-props: remove errp from GlobalProperty
All qdev_prop_register_global() set &error_fatal for errp, except '-rtc driftfix=slew', which arguably should also use &error_fatal, as otherwise failing to apply the property would only report a warning. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Igor Mammedov <imammedo@redhat.com> Reviewed-by: Cornelia Huck <cohuck@redhat.com> Acked-by: Eduardo Habkost <ehabkost@redhat.com>
This commit is contained in:
parent
e12ca3ce1c
commit
cff8b715c0
6 changed files with 4 additions and 12 deletions
|
@ -1238,8 +1238,8 @@ void qdev_prop_set_globals(DeviceState *dev)
|
|||
if (err != NULL) {
|
||||
error_prepend(&err, "can't apply global %s.%s=%s: ",
|
||||
prop->driver, prop->property, prop->value);
|
||||
if (!dev->hotplugged && prop->errp) {
|
||||
error_propagate(prop->errp, err);
|
||||
if (!dev->hotplugged) {
|
||||
error_propagate(&error_fatal, err);
|
||||
} else {
|
||||
warn_report_err(err);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue