aboutsummaryrefslogtreecommitdiff
path: root/block/vmdk.c
diff options
context:
space:
mode:
authorLiao Pingfang <liao.pingfang@zte.com.cn>2020-07-13 17:05:07 +0800
committerLaurent Vivier <laurent@vivier.eu>2020-09-01 08:37:28 +0200
commitf181ab4ba5f4af1e2b1638ab7c70d8677b441245 (patch)
treea5648830e67c5da57526cfb1ac54d79b879fbcdb /block/vmdk.c
parentd560a06c608d2d32156fdacdb72aba2294bedec4 (diff)
block/vmdk: Remove superfluous breaks
Remove superfluous breaks, as there is a "return" before them. Signed-off-by: Liao Pingfang <liao.pingfang@zte.com.cn> Signed-off-by: Yi Wang <wang.yi59@zte.com.cn> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Reviewed-by: Thomas Huth <thuth@redhat.com> Message-Id: <1594631107-36574-1-git-send-email-wang.yi59@zte.com.cn> Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Diffstat (limited to 'block/vmdk.c')
-rw-r--r--block/vmdk.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/block/vmdk.c b/block/vmdk.c
index bf9df5ce92..d90855446a 100644
--- a/block/vmdk.c
+++ b/block/vmdk.c
@@ -1053,14 +1053,11 @@ static int vmdk_open_sparse(BlockDriverState *bs, BdrvChild *file, int flags,
switch (magic) {
case VMDK3_MAGIC:
return vmdk_open_vmfs_sparse(bs, file, flags, errp);
- break;
case VMDK4_MAGIC:
return vmdk_open_vmdk4(bs, file, flags, options, errp);
- break;
default:
error_setg(errp, "Image not in VMDK format");
return -EINVAL;
- break;
}
}