]> git.proxmox.com Git - mirror_qemu.git/blobdiff - block/vpc.c
error: Eliminate error_propagate() with Coccinelle, part 1
[mirror_qemu.git] / block / vpc.c
index 119350d495f825b94de7d5da3736c4926d25a28f..04da71e9e6cc168ade956b6d03e41673e4a71f30 100644 (file)
@@ -1113,9 +1113,8 @@ static int coroutine_fn vpc_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;
     }