]> git.proxmox.com Git - mirror_qemu.git/blobdiff - hmp.c
apic_common: improve readability of apic_reset_common
[mirror_qemu.git] / hmp.c
diff --git a/hmp.c b/hmp.c
index f142d366ef6567e6e87f8a545c9bbc0b825b25a2..d85d913a795e3171a30dc63ea2ae5b1582f6dfd3 100644 (file)
--- a/hmp.c
+++ b/hmp.c
@@ -391,8 +391,7 @@ static void print_block_info(Monitor *mon, BlockInfo *info,
                         inserted->iops_size);
     }
 
-    /* TODO: inserted->image should never be null */
-    if (verbose && inserted->image) {
+    if (verbose) {
         monitor_printf(mon, "\nImages:\n");
         image_info = inserted->image;
         while (1) {
@@ -1062,7 +1061,8 @@ void hmp_drive_backup(Monitor *mon, const QDict *qdict)
 
     qmp_drive_backup(device, filename, !!format, format,
                      full ? MIRROR_SYNC_MODE_FULL : MIRROR_SYNC_MODE_TOP,
-                     true, mode, false, 0, false, 0, false, 0, &err);
+                     true, mode, false, 0, false, NULL,
+                     false, 0, false, 0, &err);
     hmp_handle_error(mon, &err);
 }