qcow2: Rewrite qcow2_alloc_bytes()
commit8c44dfbc62a50a8bc4113f199b8662861f757591
authorMax Reitz <mreitz@redhat.com>
Fri, 6 Feb 2015 14:39:16 +0000 (6 09:39 -0500)
committerKevin Wolf <kwolf@redhat.com>
Fri, 6 Feb 2015 16:24:22 +0000 (6 17:24 +0100)
tree9377fcba318699096b9e3e1a7e8a97ff5bde98b9
parent8e8cb375e0964b4ed099cb8563029028db26a834
qcow2: Rewrite qcow2_alloc_bytes()

qcow2_alloc_bytes() is a function with insufficient error handling and
an unnecessary goto. This patch rewrites it.

Signed-off-by: Max Reitz <mreitz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
block/qcow2-refcount.c