mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-10-02 04:15:46 +00:00
qemuBlockStorageSourceGetBackendProps: Remove unnecessary indent for non-nbdkit code path
Formatting of the 'nbdkit' driven backend breaks out of the switch statement so we don't need to have an unnecessary block and indentation level for the case when nbdkit is not in use. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
parent
d38f32cb4e
commit
01e35b452b
@ -1028,11 +1028,12 @@ qemuBlockStorageSourceGetBackendProps(virStorageSource *src,
|
||||
return NULL;
|
||||
|
||||
case VIR_STORAGE_TYPE_NETWORK:
|
||||
/* prefer using nbdkit for sources that are supported */
|
||||
/* prefer using nbdkit if configured for sources that are supported */
|
||||
if ((fileprops = qemuBlockStorageSourceGetNbdkitProps(src))) {
|
||||
driver = "nbd";
|
||||
break;
|
||||
} else {
|
||||
}
|
||||
|
||||
switch ((virStorageNetProtocol) src->protocol) {
|
||||
case VIR_STORAGE_NET_PROTOCOL_GLUSTER:
|
||||
driver = "gluster";
|
||||
@ -1097,7 +1098,6 @@ qemuBlockStorageSourceGetBackendProps(virStorageSource *src,
|
||||
virReportEnumRangeError(virStorageNetProtocol, src->protocol);
|
||||
return NULL;
|
||||
}
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user