Re: [PATCH v3 24/44] qom: Use return values to check for error where that's simpler

2020-07-06 Thread Vladimir Sementsov-Ogievskiy
06.07.2020 11:09, Markus Armbruster wrote: When using the Error object to check for error, we need to receive it into a local variable, then propagate() it to @errp. Using the return value permits allows receiving it straight to @errp. Signed-off-by: Markus Armbruster Reviewed-by: Eric Blake

[PATCH v3 24/44] qom: Use return values to check for error where that's simpler

2020-07-06 Thread Markus Armbruster
When using the Error object to check for error, we need to receive it into a local variable, then propagate() it to @errp. Using the return value permits allows receiving it straight to @errp. Signed-off-by: Markus Armbruster Reviewed-by: Eric Blake --- qom/object.c | 25