]> git.proxmox.com Git - mirror_qemu.git/blobdiff - block/vhdx.c
error: Eliminate error_propagate() with Coccinelle, part 1
[mirror_qemu.git] / block / vhdx.c
index 645dc4b4f41f56c27e36e74a2502c7ad098443b6..327675cc7c311729bf9c0ac6a2bf2806149646bf 100644 (file)
@@ -2083,9 +2083,8 @@ static int coroutine_fn vhdx_co_create_opts(BlockDriver *drv,
     }
 
     /* Create and open the file (protocol layer) */
-    ret = bdrv_create_file(filename, opts, &local_err);
+    ret = bdrv_create_file(filename, opts, errp);
     if (ret < 0) {
-        error_propagate(errp, local_err);
         goto fail;
     }