mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-21 20:15:17 +00:00
Remove useless os.machine NULL check
In qemuDomainDefAddDefaultDevices we check for a non-NULL def->os.machine for x86 archs, but not the others. Moreover, the only caller - qemuDomainDefPostParse already checks for it and even then it can happen only if /etc/libvirt contains an XML without a machine type.
This commit is contained in:
parent
53a868f152
commit
f2b157945f
@ -1734,8 +1734,6 @@ qemuDomainDefAddDefaultDevices(virDomainDefPtr def,
|
||||
switch (def->os.arch) {
|
||||
case VIR_ARCH_I686:
|
||||
case VIR_ARCH_X86_64:
|
||||
if (!def->os.machine)
|
||||
break;
|
||||
if (STREQ(def->os.machine, "isapc")) {
|
||||
addDefaultUSB = false;
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user