After previous cleanups, the cleanup label is no longer needed and can be removed. Signed-off-by: Michal Privoznik <mprivozn@xxxxxxxxxx> --- src/lxc/lxc_fuse.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/lxc/lxc_fuse.c b/src/lxc/lxc_fuse.c index 1dedbc4069..7c435803e9 100644 --- a/src/lxc/lxc_fuse.c +++ b/src/lxc/lxc_fuse.c @@ -162,14 +162,12 @@ lxcProcReadMeminfo(char *hostpath, fp = fopen(hostpath, "r"); if (fp == NULL) { virReportSystemError(errno, _("Cannot open %s"), hostpath); - res = -errno; - goto cleanup; + return -errno; } if (fseek(fp, offset, SEEK_SET) < 0) { virReportSystemError(errno, "%s", _("fseek failed")); - res = -errno; - goto cleanup; + return -errno; } res = -1; @@ -249,7 +247,6 @@ lxcProcReadMeminfo(char *hostpath, res = size; memcpy(buf, virBufferCurrentContent(new_meminfo), res); - cleanup: return res; } -- 2.34.1