]> Git Repo - qemu.git/blobdiff - block.c
hw/qdev-core: Fix description of instance_init
[qemu.git] / block.c
diff --git a/block.c b/block.c
index 6161dbe3eb78dd9ed4181ff1e9838f2b3e0d2a2d..0dbb1fcc7bfd3800ad57926f16c644581c5dd6cd 100644 (file)
--- a/block.c
+++ b/block.c
@@ -1478,11 +1478,6 @@ static QDict *parse_json_filename(const char *filename, Error **errp)
 
     options_obj = qobject_from_json(filename, errp);
     if (!options_obj) {
-        /* Work around qobject_from_json() lossage TODO fix that */
-        if (errp && !*errp) {
-            error_setg(errp, "Could not parse the JSON options");
-            return NULL;
-        }
         error_prepend(errp, "Could not parse the JSON options: ");
         return NULL;
     }
This page took 0.0233 seconds and 4 git commands to generate.