提交 f84c7c67 编写于 作者: J Ján Tomko

qemu: eliminate ret variable in qemuExtTPMStart

Signed-off-by: NJán Tomko <jtomko@redhat.com>
Reviewed-by: NPeter Krempa <pkrempa@redhat.com>
上级 06160f67
...@@ -865,19 +865,18 @@ qemuExtTPMStart(virQEMUDriverPtr driver, ...@@ -865,19 +865,18 @@ qemuExtTPMStart(virQEMUDriverPtr driver,
virDomainObjPtr vm, virDomainObjPtr vm,
bool incomingMigration) bool incomingMigration)
{ {
int ret = 0;
virDomainTPMDefPtr tpm = vm->def->tpm; virDomainTPMDefPtr tpm = vm->def->tpm;
switch (tpm->type) { switch (tpm->type) {
case VIR_DOMAIN_TPM_TYPE_EMULATOR: case VIR_DOMAIN_TPM_TYPE_EMULATOR:
ret = qemuExtTPMStartEmulator(driver, vm, incomingMigration); return qemuExtTPMStartEmulator(driver, vm, incomingMigration);
break;
case VIR_DOMAIN_TPM_TYPE_PASSTHROUGH: case VIR_DOMAIN_TPM_TYPE_PASSTHROUGH:
case VIR_DOMAIN_TPM_TYPE_LAST: case VIR_DOMAIN_TPM_TYPE_LAST:
break; break;
} }
return ret; return 0;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册