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:
Peter Krempa 2023-10-18 09:38:56 +02:00
parent d38f32cb4e
commit 01e35b452b

View File

@ -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;
}