qemu: Silence coverity on optional migration stats

Signed-off-by: Jiri Denemark <jdenemar@redhat.com>
This commit is contained in:
Jiri Denemark 2014-09-09 10:17:46 +02:00
parent 3a8688162e
commit 1ffff046ac

View File

@ -2489,7 +2489,8 @@ qemuMonitorJSONGetMigrationStatusReply(virJSONValuePtr reply,
return -1; return -1;
} }
virJSONValueObjectGetNumberUlong(ret, "total-time", &status->total_time); ignore_value(virJSONValueObjectGetNumberUlong(ret, "total-time",
&status->total_time));
if (status->status == QEMU_MONITOR_MIGRATION_STATUS_COMPLETED) { if (status->status == QEMU_MONITOR_MIGRATION_STATUS_COMPLETED) {
rc = virJSONValueObjectGetNumberUlong(ret, "downtime", rc = virJSONValueObjectGetNumberUlong(ret, "downtime",
&status->downtime); &status->downtime);
@ -2534,9 +2535,10 @@ qemuMonitorJSONGetMigrationStatusReply(virJSONValuePtr reply,
if (virJSONValueObjectGetNumberUlong(ram, "duplicate", if (virJSONValueObjectGetNumberUlong(ram, "duplicate",
&status->ram_duplicate) == 0) &status->ram_duplicate) == 0)
status->ram_duplicate_set = true; status->ram_duplicate_set = true;
virJSONValueObjectGetNumberUlong(ram, "normal", &status->ram_normal); ignore_value(virJSONValueObjectGetNumberUlong(ram, "normal",
virJSONValueObjectGetNumberUlong(ram, "normal-bytes", &status->ram_normal));
&status->ram_normal_bytes); ignore_value(virJSONValueObjectGetNumberUlong(ram, "normal-bytes",
&status->ram_normal_bytes));
virJSONValuePtr disk = virJSONValueObjectGet(ret, "disk"); virJSONValuePtr disk = virJSONValueObjectGet(ret, "disk");
if (disk) { if (disk) {