void block_job_complete(BlockJob *job, Error **errp)

{

    if (job->paused || job->cancelled || !job->driver->complete) {

        error_set(errp, QERR_BLOCK_JOB_NOT_READY,

                  bdrv_get_device_name(job->bs));

        return;

    }



    job->driver->complete(job, errp);

}

void block_job_complete(BlockJob *job, Error **errp)

{

    if (job->paused || job->cancelled || !job->driver->complete) {

        error_set(errp, QERR_BLOCK_JOB_NOT_READY,

                  bdrv_get_device_name(job->bs));

        return;

    }



    job->driver->complete(job, errp);

}

void FUNC_0(BlockJob *VAR_0, Error **VAR_1)

{

    if (VAR_0->paused || VAR_0->cancelled || !VAR_0->driver->complete) {

        error_set(VAR_1, QERR_BLOCK_JOB_NOT_READY,

                  bdrv_get_device_name(VAR_0->bs));

        return;

    }



    VAR_0->driver->complete(VAR_0, VAR_1);

}

void FUNC_0(BlockJob *VAR_0, Error **VAR_1)
{ if (VAR_0->paused || VAR_0->cancelled || !VAR_0->driver->complete) { error_set(VAR_1, QERR_BLOCK_JOB_NOT_READY,
bdrv_get_device_name(VAR_0->bs)); return; } VAR_0->driver->complete(VAR_0, VAR_1); }