]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Simplify interface handling in qemuConnectDomainXMLToNative()
authorMichal Privoznik <mprivozn@redhat.com>
Wed, 17 Apr 2019 08:14:59 +0000 (10:14 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 17 Apr 2019 08:47:23 +0000 (10:47 +0200)
commit4bdce1219f4888ef43af3866726465173a4ff9ce
tree6f81cb6cb4ceeac150bebfe26727299d9ad5a5e9
parent3c32f9ec42ad9e221c87454cbf1fe23be97c4d30
qemu: Simplify interface handling in qemuConnectDomainXMLToNative()

Firstly, VIR_STRDUP() accepts NULL, so there is no need to check
if the string we want to duplicate is not-NULL. Secondly,
virDomainNetSetModelString() also accepts NULL. Thirdly, we have
VIR_AUTOFREE().

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_driver.c