]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virDomainResctrlMonDefParse: Refactor temporary variables
authorPeter Krempa <pkrempa@redhat.com>
Mon, 17 Feb 2025 12:01:39 +0000 (13:01 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Thu, 20 Feb 2025 14:15:39 +0000 (15:15 +0100)
commit5e4262b9ac6214b693854281dd0c0748d6a2f883
tree77d608bb4e91a7f2ce597081ab24b53432ab0f72
parent13c54c89451596f77d0dbe4b58876d005a08850b
virDomainResctrlMonDefParse: Refactor temporary variables

Decrease scope of temporary variables so that they don't have to be
autofreed and VIR_FREE()d at the same time.

Remove unneeded checks and temporary variables.

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