1
0
mirror of https://gitlab.com/libvirt/libvirt.git synced 2024-12-22 17:34:18 +03:00

lxcProcReadMeminfo: Drop needless label

After previous cleanups, the cleanup label is no longer needed
and can be removed.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
This commit is contained in:
Michal Privoznik 2022-02-28 15:27:24 +01:00
parent 8b36a2574f
commit 477ae0b868

View File

@ -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;
}