[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2 2/3] qom/object_interfaces: Make object_set_properties_fro
From: |
Zhao Liu |
Subject: |
Re: [PATCH v2 2/3] qom/object_interfaces: Make object_set_properties_from_qdict return bool |
Date: |
Mon, 18 Mar 2024 16:56:26 +0800 |
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 <zhenzhong.duan@intel.com>
> Subject: [PATCH v2 2/3] qom/object_interfaces: Make
> object_set_properties_from_qdict return bool
> X-Mailer: git-send-email 2.34.1
>
> 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 <zhao1.liu@intel.com>
> Signed-off-by: Zhenzhong Duan <zhenzhong.duan@intel.com>
> ---
> qom/object_interfaces.c | 21 ++++++++++-----------
> 1 file changed, 10 insertions(+), 11 deletions(-)
Reviewed-by: Zhao Liu <zhao1.liu@intel.com>