mirror of
https://github.com/qemu/qemu.git
synced 2026-07-08 17:56:38 +00:00
nbd/client-connection: Replace error_propagate() by assignment
connect_thread_func() sets a variable to null, then error_propagate()s an Error * to it. This is a roundabout way to assign the Error * to it, so replace it by just that. Signed-off-by: Markus Armbruster <armbru@redhat.com> Message-ID: <20251119130855.105479-4-armbru@redhat.com> Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@yandex-team.ru> Reviewed-by: Peter Xu <peterx@redhat.com> Reviewed-by: Zhao Liu <zhao1.liu@intel.com>
This commit is contained in:
@@ -207,8 +207,7 @@ static void *connect_thread_func(void *opaque)
|
||||
qemu_mutex_lock(&conn->mutex);
|
||||
|
||||
error_free(conn->err);
|
||||
conn->err = NULL;
|
||||
error_propagate(&conn->err, local_err);
|
||||
conn->err = local_err;
|
||||
|
||||
if (ret < 0) {
|
||||
object_unref(OBJECT(conn->sioc));
|
||||
|
||||
Reference in New Issue
Block a user