]> git.proxmox.com Git - mirror_qemu.git/blobdiff - block/qcow2-refcount.c
block: fix return code for partial write for Linux AIO
[mirror_qemu.git] / block / qcow2-refcount.c
index 66f187a74be951aee3119dabedcfbe3028fb2c0a..3bef4108395ac830187957b1cb039841058b6737 100644 (file)
@@ -218,13 +218,10 @@ static int load_refcount_block(BlockDriverState *bs,
                                void **refcount_block)
 {
     BDRVQcow2State *s = bs->opaque;
-    int ret;
 
     BLKDBG_EVENT(bs->file, BLKDBG_REFBLOCK_LOAD);
-    ret = qcow2_cache_get(bs, s->refcount_block_cache, refcount_block_offset,
-        refcount_block);
-
-    return ret;
+    return qcow2_cache_get(bs, s->refcount_block_cache, refcount_block_offset,
+                           refcount_block);
 }
 
 /*