proc_parse: remove trivial goto from vma_get_mapfile_user()

Signed-off-by: Michał Mirosław <emmir@google.com>
This commit is contained in:
Michał Mirosław 2023-08-25 13:36:21 +02:00 committed by Andrei Vagin
parent f7d7dc9c08
commit ea05b06ac2

View file

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