qemuBlockJobInfoTranslate: Use explicit comparison against 0

Using ! on integers is misleading.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
This commit is contained in:
Peter Krempa 2020-12-04 16:07:59 +01:00 committed by Michal Privoznik
parent 0f7b80691b
commit b643bf3954

View File

@ -14649,7 +14649,7 @@ qemuBlockJobInfoTranslate(qemuMonitorBlockJobInfoPtr rawInfo,
* applications think job is completed. Except when both cur
* and end are zero, in which case qemu hasn't started the
* job yet. */
if (!info->cur && !info->end) {
if (info->cur == 0 && info->end == 0) {
if (rawInfo->ready_present) {
info->end = 1;
if (rawInfo->ready)