Signed-off-by: Matt Coleman <matt@xxxxxxxxx> --- src/hyperv/hyperv_driver.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/hyperv/hyperv_driver.c b/src/hyperv/hyperv_driver.c index 6d5e899535..68835cad91 100644 --- a/src/hyperv/hyperv_driver.c +++ b/src/hyperv/hyperv_driver.c @@ -1053,9 +1053,8 @@ hypervDomainGetInfo(virDomainPtr domain, virDomainInfoPtr info) if (hypervGetProcSDByVSSDInstanceId(priv, virtualSystemSettingData->data.common->InstanceID, - &processorSettingData) < 0) { + &processorSettingData) < 0) goto cleanup; - } if (hypervGetMsvmMemorySettingDataFromVSSD(priv, virtualSystemSettingData->data.common->InstanceID, @@ -1137,9 +1136,8 @@ hypervDomainGetXMLDesc(virDomainPtr domain, unsigned int flags) if (hypervGetProcSDByVSSDInstanceId(priv, virtualSystemSettingData->data.common->InstanceID, - &processorSettingData) < 0) { + &processorSettingData) < 0) goto cleanup; - } if (hypervGetMsvmMemorySettingDataFromVSSD(priv, virtualSystemSettingData->data.common->InstanceID, -- 2.27.0