block/mirror: drop extra error propagation in commit_active_start()
authorVladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Tue, 2 Feb 2021 12:49:48 +0000 (15:49 +0300)
committerEric Blake <eblake@redhat.com>
Mon, 8 Mar 2021 21:14:14 +0000 (15:14 -0600)
commiteb5becc18fff6ba43922a169a64029e7e26ef86a
treeaaa00902a54e77200473b3cdc6f4b84ae29286ff
parentdc9c10a1f42235a7f8411feca28984c4e7da3177
block/mirror: drop extra error propagation in commit_active_start()

Let's check return value of mirror_start_job to check for failure
instead of local_err.

Rename ret to job, as ret is usually integer variable.

Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Reviewed-by: Greg Kurz <groug@kaod.org>
Reviewed-by: Alberto Garcia <berto@igalia.com>
Message-Id: <20210202124956.63146-7-vsementsov@virtuozzo.com>
Signed-off-by: Eric Blake <eblake@redhat.com>
block/mirror.c