[libvirt] [PATCH 7/7] Remove useless os.machine NULL check

Peter Krempa pkrempa at redhat.com
Tue May 3 11:06:10 UTC 2016


On Tue, May 03, 2016 at 12:47:27 +0200, Ján Tomko wrote:
> 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 | 2 --
>  1 file changed, 2 deletions(-)

ACK
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20160503/d376a7c1/attachment-0001.sig>


More information about the libvir-list mailing list