mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
blockjob: remove unnecessary check
!job is always checked prior to the call, drop it from here. Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Reviewed-by: Jeff Cody <jcody@redhat.com> Message-id: 20170508141310.8674-2-pbonzini@redhat.com Signed-off-by: Jeff Cody <jcody@redhat.com>
This commit is contained in:
parent
9964e96dc9
commit
6573d9c638
1 changed files with 1 additions and 1 deletions
|
@ -480,7 +480,7 @@ static bool block_job_should_pause(BlockJob *job)
|
||||||
|
|
||||||
bool block_job_user_paused(BlockJob *job)
|
bool block_job_user_paused(BlockJob *job)
|
||||||
{
|
{
|
||||||
return job ? job->user_paused : 0;
|
return job->user_paused;
|
||||||
}
|
}
|
||||||
|
|
||||||
void coroutine_fn block_job_pause_point(BlockJob *job)
|
void coroutine_fn block_job_pause_point(BlockJob *job)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue