]> xenbits.xensource.com Git - libvirt.git/commit
lxcSetupFuse: Cleanup error paths
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 22 Feb 2022 12:47:36 +0000 (13:47 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 7 Mar 2022 13:01:48 +0000 (14:01 +0100)
commitc7171f937ef515c6917aff1dc5336b54e62ecf01
treed7114de9a7d119086351834a8fc2694ca80cf340
parent320efa9572dbd2f6b5c904efad11798020da40c4
lxcSetupFuse: Cleanup error paths

In the lxcSetupFuse() function there are multiple cleanup labels,
but with a bit of rewrite they can be joined into one 'error'
label. And while at it, set the @f argument only in the
successful path (currently is set in error case too).

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