]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virDomainNetDefParseXML: Remove unnecessary temporary variables
authorPeter Krempa <pkrempa@redhat.com>
Thu, 15 Sep 2022 14:01:20 +0000 (16:01 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 3 Oct 2022 12:43:17 +0000 (14:43 +0200)
commit09753fbac6de34db4bdf64195958d6cb71314d41
tree2061ae97ec402e2470f2456cc0b636a1cecc836d
parent1ebbeb29ba416a94366d34bfaa87c15c0a28b062
virDomainNetDefParseXML: Remove unnecessary temporary variables

Some values were extracted into a temporary variable and then assigned
to the definition later without a modification.

Directly assign them instead.

One slight modification was done to 'ifname' which was cleared in
certain cases.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/conf/domain_conf.c