mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-01-23 02:14:37 +00:00
proc_parse: remove trivial goto from vma_get_mapfile_user()
Signed-off-by: Michał Mirosław <emmir@google.com>
This commit is contained in:
parent
f7d7dc9c08
commit
ea05b06ac2
1 changed files with 1 additions and 2 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue