]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Remove useless os.machine NULL check
authorJán Tomko <jtomko@redhat.com>
Tue, 3 May 2016 10:29:26 +0000 (12:29 +0200)
committerJán Tomko <jtomko@redhat.com>
Tue, 3 May 2016 10:29:26 +0000 (12:29 +0200)
commitf2b157945f45ce78d35f17337cf2f64bacab4c1e
treeb1f95256d0c242cd43309c8f7305a7940d8f9ce0
parent53a868f152760cc92a33a1080b85880355f6d934
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.
src/qemu/qemu_domain.c