qcow2: Move cluster gathering to a non-looping loop
authorKevin Wolf <kwolf@redhat.com>
Tue, 26 Mar 2013 16:50:12 +0000 (17:50 +0100)
committerStefan Hajnoczi <stefanha@redhat.com>
Thu, 28 Mar 2013 10:52:44 +0000 (11:52 +0100)
commit2c3b32d25620c26e26fd590c198ec6d9cf91da57
treeb062c3c8c837dff2d5c03875423ed7aaba3882f4
parent88c6588c5165da1526f735ed850861c5b74670bd
qcow2: Move cluster gathering to a non-looping loop

This patch is mainly to separate the indentation change from the
semantic changes. All that really changes here is that everything moves
into a while loop, all 'goto done' become 'break' and at the end of the
loop a new 'break is inserted.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
block/qcow2-cluster.c