From ea05b06ac255e999f03e2858ed2c7119bfb153b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Miros=C5=82aw?= Date: Fri, 25 Aug 2023 13:36:21 +0200 Subject: [PATCH] proc_parse: remove trivial goto from vma_get_mapfile_user() MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michał Mirosław --- criu/proc_parse.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/criu/proc_parse.c b/criu/proc_parse.c index 5e96b5c96..bd6c3dcbc 100644 --- a/criu/proc_parse.c +++ b/criu/proc_parse.c @@ -338,7 +338,7 @@ static int vma_get_mapfile_user(const char *fname, struct vma_area *vma, struct fd = open(fname, O_RDONLY); if (fd < 0) { pr_perror("Can't open mapped [%s]", fname); - goto returnerr; + return -1; } if (vma_stat(vma, fd)) { @@ -379,7 +379,6 @@ errmsg: pr_err("Failed to resolve mapping %lx filename\n", (unsigned long)vma->e->start); closefd: close(fd); -returnerr: return -1; }