Re: [PATCH v2 2/3] qom/object_interfaces: Make object_set_properties_from_qdict return bool

2024-03-18 Thread Zhao Liu
On Mon, Mar 18, 2024 at 11:32:09AM +0800, Zhenzhong Duan wrote: > Date: Mon, 18 Mar 2024 11:32:09 +0800 > From: Zhenzhong Duan > Subject: [PATCH v2 2/3] qom/object_interfaces: Make > object_set_properties_from_qdict return bool > X-Mailer: git-send-email 2

[PATCH v2 2/3] qom/object_interfaces: Make object_set_properties_from_qdict return bool

2024-03-17 Thread Zhenzhong Duan
Make object_set_properties_from_qdict() return bool, so that user_creatable_add_type() could check its return value instead of local_err pointer. Opportunistically, do the same change to check return value of object_property_try_add_child() instead of local_err pointer. Suggested-by: Zhao Liu