]> git.proxmox.com Git - mirror_qemu.git/blobdiff - block/qcow2-cluster.c
coccinelle: Remove unnecessary variables for function return value
[mirror_qemu.git] / block / qcow2-cluster.c
index 893ddf67983b5a5d8b30d9f16f36f1fa392cc684..0fb43566fb6ce5e7d48d28778b5419bcd433b28f 100644 (file)
@@ -154,11 +154,9 @@ static int l2_load(BlockDriverState *bs, uint64_t l2_offset,
     uint64_t **l2_table)
 {
     BDRVQcow2State *s = bs->opaque;
-    int ret;
-
-    ret = qcow2_cache_get(bs, s->l2_table_cache, l2_offset, (void**) l2_table);
 
-    return ret;
+    return qcow2_cache_get(bs, s->l2_table_cache, l2_offset,
+                           (void **)l2_table);
 }
 
 /*