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>
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;
res = size;
memcpy(buf, virBufferCurrentContent(new_meminfo), res);
- cleanup:
return res;
}