mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
qom: Drop @errp parameter of object_property_del()
Same story as for object_property_add(): the only way object_property_del() can fail is when the property with this name does not exist. Since our property names are all hardcoded, failure is a programming error, and the appropriate way to handle it is passing &error_abort. Most callers do that, the commit before previous fixed one that didn't (and got the error handling wrong), and the two remaining exceptions ignore errors. Drop the @errp parameter. Signed-off-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Paolo Bonzini <pbonzini@redhat.com> Message-Id: <20200505152926.18877-19-armbru@redhat.com> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
This commit is contained in:
parent
7ef1553dac
commit
df4fe0b291
7 changed files with 8 additions and 14 deletions
|
@ -1047,7 +1047,7 @@ ObjectProperty *object_property_add(Object *obj, const char *name,
|
|||
ObjectPropertyRelease *release,
|
||||
void *opaque);
|
||||
|
||||
void object_property_del(Object *obj, const char *name, Error **errp);
|
||||
void object_property_del(Object *obj, const char *name);
|
||||
|
||||
ObjectProperty *object_class_property_add(ObjectClass *klass, const char *name,
|
||||
const char *type,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue