]> git.proxmox.com Git - mirror_qemu.git/blobdiff - device-hotplug.c
hw/acpi: extract acpi_add_rom_blob()
[mirror_qemu.git] / device-hotplug.c
index 6090d5f1e95f300799232efb7fe4f202c68ee860..6153259d7127ac106883abb646affcc869efa12b 100644 (file)
@@ -48,7 +48,7 @@ static DriveInfo *add_init_drive(const char *optstr)
 
     mc = MACHINE_GET_CLASS(current_machine);
     dinfo = drive_new(opts, mc->block_default_type, &err);
-    if (!dinfo) {
+    if (err) {
         error_report_err(err);
         qemu_opts_del(opts);
         return NULL;