9119d9
From 40e7bc4ad1d7552a83bd9d8c19ee8fe650779b03 Mon Sep 17 00:00:00 2001
9119d9
Message-Id: <40e7bc4ad1d7552a83bd9d8c19ee8fe650779b03@dist-git>
9119d9
From: Jiri Denemark <jdenemar@redhat.com>
9119d9
Date: Tue, 9 Sep 2014 10:17:46 +0200
9119d9
Subject: [PATCH] qemu: Silence coverity on optional migration stats
9119d9
9119d9
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
9119d9
(cherry picked from commit 1ffff046ac7eef04f7591bbc73da7db8076d4a5f)
9119d9
9119d9
https://bugzilla.redhat.com/show_bug.cgi?id=1063724
9119d9
Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
9119d9
---
9119d9
 src/qemu/qemu_monitor_json.c | 10 ++++++----
9119d9
 1 file changed, 6 insertions(+), 4 deletions(-)
9119d9
9119d9
diff --git a/src/qemu/qemu_monitor_json.c b/src/qemu/qemu_monitor_json.c
9119d9
index 2ae8ee0..106d807 100644
9119d9
--- a/src/qemu/qemu_monitor_json.c
9119d9
+++ b/src/qemu/qemu_monitor_json.c
9119d9
@@ -2463,7 +2463,8 @@ qemuMonitorJSONGetMigrationStatusReply(virJSONValuePtr reply,
9119d9
         return -1;
9119d9
     }
9119d9
 
9119d9
-    virJSONValueObjectGetNumberUlong(ret, "total-time", &status->total_time);
9119d9
+    ignore_value(virJSONValueObjectGetNumberUlong(ret, "total-time",
9119d9
+                                                  &status->total_time));
9119d9
     if (status->status == QEMU_MONITOR_MIGRATION_STATUS_COMPLETED) {
9119d9
         rc = virJSONValueObjectGetNumberUlong(ret, "downtime",
9119d9
                                               &status->downtime);
9119d9
@@ -2508,9 +2509,10 @@ qemuMonitorJSONGetMigrationStatusReply(virJSONValuePtr reply,
9119d9
         if (virJSONValueObjectGetNumberUlong(ram, "duplicate",
9119d9
                                              &status->ram_duplicate) == 0)
9119d9
             status->ram_duplicate_set = true;
9119d9
-        virJSONValueObjectGetNumberUlong(ram, "normal", &status->ram_normal);
9119d9
-        virJSONValueObjectGetNumberUlong(ram, "normal-bytes",
9119d9
-                                         &status->ram_normal_bytes);
9119d9
+        ignore_value(virJSONValueObjectGetNumberUlong(ram, "normal",
9119d9
+                                                      &status->ram_normal));
9119d9
+        ignore_value(virJSONValueObjectGetNumberUlong(ram, "normal-bytes",
9119d9
+                                                      &status->ram_normal_bytes));
9119d9
 
9119d9
         virJSONValuePtr disk = virJSONValueObjectGet(ret, "disk");
9119d9
         if (disk) {
9119d9
-- 
9119d9
2.1.0
9119d9