diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2017-05-08 16:13:00 +0200 |
---|---|---|
committer | Jeff Cody <jcody@redhat.com> | 2017-05-24 16:38:51 -0400 |
commit | 6573d9c63885aaf533366ab5c68318d1cf1a0fcc (patch) | |
tree | 88ab4dd28fd32e03debc4d81745e7a98af58e0ca /blockjob.c | |
parent | 9964e96dc9999cf7f7c936ee854a795415d19b60 (diff) | |
download | qemu-6573d9c63885aaf533366ab5c68318d1cf1a0fcc.zip qemu-6573d9c63885aaf533366ab5c68318d1cf1a0fcc.tar.gz qemu-6573d9c63885aaf533366ab5c68318d1cf1a0fcc.tar.bz2 |
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>
Diffstat (limited to 'blockjob.c')
-rw-r--r-- | blockjob.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -480,7 +480,7 @@ static bool block_job_should_pause(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) |