vmdk: Clean up control flow in vmdk_parse_extents() a bit
commite4937694b66d1468aec3cd95e90888f291c3f599
authorMarkus Armbruster <armbru@redhat.com>
Fri, 18 Dec 2015 15:35:20 +0000 (18 16:35 +0100)
committerMarkus Armbruster <armbru@redhat.com>
Wed, 13 Jan 2016 14:16:18 +0000 (13 15:16 +0100)
tree5e9738833ae3ed1f2a68ad32bc93ffc546c880a2
parent9af9e0fed76e91ed42cb6d31ab6c665f7d691c1c
vmdk: Clean up control flow in vmdk_parse_extents() a bit

Factor out loop stepping to turn a while-loop with goto into a
for-loop with continue.

Cc: Fam Zheng <famz@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Fam Zheng <famz@redhat.com>
Message-Id: <1450452927-8346-18-git-send-email-armbru@redhat.com>
block/vmdk.c