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>
Showing
- hw/core/qdev.c 1 addition, 1 deletionhw/core/qdev.c
- hw/i386/pc_sysfw.c 1 addition, 1 deletionhw/i386/pc_sysfw.c
- hw/ppc/spapr_drc.c 2 additions, 2 deletionshw/ppc/spapr_drc.c
- include/qom/object.h 1 addition, 1 deletioninclude/qom/object.h
- qom/object.c 1 addition, 6 deletionsqom/object.c
- qom/object_interfaces.c 1 addition, 2 deletionsqom/object_interfaces.c
- tests/check-qom-proplist.c 1 addition, 1 deletiontests/check-qom-proplist.c
Loading
Please register or sign in to comment