From: Michal Privoznik Date: Mon, 28 Feb 2022 14:27:24 +0000 (+0100) Subject: lxcProcReadMeminfo: Drop needless label X-Git-Tag: v8.2.0-rc1~179 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=477ae0b86847fd43bd8ab605490872249c027075;p=thirdparty%2Flibvirt.git lxcProcReadMeminfo: Drop needless label After previous cleanups, the cleanup label is no longer needed and can be removed. Signed-off-by: Michal Privoznik Reviewed-by: Ján Tomko --- 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; }