[libvirt] [PATCH] qemu: Simplify interface handling in qemuConnectDomainXMLToNative()

Ján Tomko jtomko at redhat.com
Wed Apr 17 08:38:35 UTC 2019


On Wed, Apr 17, 2019 at 10:18:50AM +0200, Michal Privoznik wrote:
>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 at redhat.com>
>---
> src/qemu/qemu_driver.c | 10 +++-------
> 1 file changed, 3 insertions(+), 7 deletions(-)
>

Reviewed-by: Ján Tomko <jtomko at redhat.com>

Jano
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20190417/6c9360b5/attachment-0001.sig>


More information about the libvir-list mailing list