]> git.ipfire.org Git - thirdparty/libvirt.git/commit
prlsdkAddDomainVideoInfoCt: Remove pointless cleanup section
authorPeter Krempa <pkrempa@redhat.com>
Tue, 3 Aug 2021 13:05:59 +0000 (15:05 +0200)
committerPeter Krempa <pkrempa@redhat.com>
Fri, 6 Aug 2021 06:53:26 +0000 (08:53 +0200)
commita31864e60a5d1eb3a87a40e50d7765c0ded699b4
tree8e6ce5143b6945ae0d4418ca1aaa87dbd7c304d3
parentf90de01763cc8621134cb26770c6bc4134f7f1b7
prlsdkAddDomainVideoInfoCt: Remove pointless cleanup section

'video' will only ever be NULL after the 'cleanup' label thus there's no
need to use 'virDomainVideoDefFree'. In fact we can fully remove the
cleanup section and 'ret' variable by returning directly from failure
points.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
src/vz/vz_sdk.c