]> Git Repo - qemu.git/blobdiff - device-hotplug.c
fpu: rename softfloat-specialize.h -> .inc.c
[qemu.git] / device-hotplug.c
index 6090d5f1e95f300799232efb7fe4f202c68ee860..f01d53774b062636aa81eaa13bd08af7ff46e87f 100644 (file)
@@ -23,7 +23,6 @@
  */
 
 #include "qemu/osdep.h"
-#include "hw/hw.h"
 #include "hw/boards.h"
 #include "sysemu/block-backend.h"
 #include "sysemu/blockdev.h"
@@ -48,7 +47,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;
This page took 0.023519 seconds and 4 git commands to generate.