]> git.proxmox.com Git - mirror_qemu.git/commit - block/qcow2-refcount.c
qcow2-refcount: improve style of check_refcounts_l1()
authorVladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Tue, 14 Sep 2021 12:24:52 +0000 (15:24 +0300)
committerHanna Reitz <hreitz@redhat.com>
Wed, 15 Sep 2021 16:42:38 +0000 (18:42 +0200)
commitcd6efd60e9aaa0665ae76c0ec91298eeac2f4c25
treed01e3579b2eb9bfb976e5893b55a3fcd3dcf368f
parent289ef5f219d1a94b8225c459dc65821b37637a4f
qcow2-refcount: improve style of check_refcounts_l1()

 - use g_autofree for l1_table
 - better name for size in bytes variable
 - reduce code blocks nesting
 - whitespaces, braces, newlines

Signed-off-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Reviewed-by: Hanna Reitz <hreitz@redhat.com>
Message-Id: <20210914122454.141075-9-vsementsov@virtuozzo.com>
Signed-off-by: Hanna Reitz <hreitz@redhat.com>
block/qcow2-refcount.c