]> git.proxmox.com Git - mirror_qemu.git/blobdiff - qemu-img.c
vmdk: implement .bdrv_detach/attach_aio_context()
[mirror_qemu.git] / qemu-img.c
index 62ea27eae5133b0cee819e590f27860d5a5e2d74..b3d2bc6f024663fa6a0e652286c857681f29c41f 100644 (file)
@@ -663,9 +663,7 @@ static int img_check(int argc, char **argv)
     ret = collect_image_check(bs, check, filename, fmt, fix);
 
     if (ret == -ENOTSUP) {
-        if (output_format == OFORMAT_HUMAN) {
-            error_report("This image format does not support checks");
-        }
+        error_report("This image format does not support checks");
         ret = 63;
         goto fail;
     }
@@ -1455,7 +1453,7 @@ static int img_convert(int argc, char **argv)
     ret = bdrv_parse_cache_flags(cache, &flags);
     if (ret < 0) {
         error_report("Invalid cache option: %s", cache);
-        return -1;
+        goto out;
     }
 
     out_bs = bdrv_new_open("target", out_filename, out_fmt, flags, true, quiet);