mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-09-05 01:45:04 +03:00
qemu: Avoid useless tmp variable in qemuCanonicalizeMachine
Signed-off-by: Jiri Denemark <jdenemar@redhat.com> Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
@@ -947,10 +947,8 @@ qemuCanonicalizeMachine(virDomainDef *def, virQEMUCaps *qemuCaps)
|
|||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
if (STRNEQ(canon, def->os.machine)) {
|
if (STRNEQ(canon, def->os.machine)) {
|
||||||
char *tmp;
|
|
||||||
tmp = g_strdup(canon);
|
|
||||||
VIR_FREE(def->os.machine);
|
VIR_FREE(def->os.machine);
|
||||||
def->os.machine = tmp;
|
def->os.machine = g_strdup(canon);
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
Reference in New Issue
Block a user