]> git.proxmox.com Git - mirror_qemu.git/blobdiff - block/raw_bsd.c
coccinelle: Remove unnecessary variables for function return value
[mirror_qemu.git] / block / raw_bsd.c
index b51ac98061cd53d6ce31451be4d8fec7eefde5ee..7f637914b7787a2dcfeb79b2717eae01201727aa 100644 (file)
@@ -190,10 +190,7 @@ static int raw_has_zero_init(BlockDriverState *bs)
 
 static int raw_create(const char *filename, QemuOpts *opts, Error **errp)
 {
-    int ret;
-
-    ret = bdrv_create_file(filename, opts, errp);
-    return ret;
+    return bdrv_create_file(filename, opts, errp);
 }
 
 static int raw_open(BlockDriverState *bs, QDict *options, int flags,