]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
qemuBlockJobInfoTranslate: Use explicit comparison against 0
authorPeter Krempa <pkrempa@redhat.com>
Fri, 4 Dec 2020 15:07:59 +0000 (16:07 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 7 Dec 2020 09:15:00 +0000 (10:15 +0100)
Using ! on integers is misleading.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
src/qemu/qemu_driver.c

index 800f98e4741ab5f1efc4c7e46d653050528f8e7d..b82f7e249a3e0750739806057fed4945307b1955 100644 (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)