[CRIU] [PATCHv1] Remove a redundant "return" statement
Andrei Vagin
avagin at virtuozzo.com
Fri Feb 16 04:40:13 MSK 2018
Applied, thanks
On Sun, Feb 11, 2018 at 12:04:41PM +0000, Radostin Stoyanov wrote:
> Signed-off-by: Radostin Stoyanov <rstoyanov1 at gmail.com>
> ---
> criu/image.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
>
> diff --git a/criu/image.c b/criu/image.c
> index 62e8e710..9201f6a3 100644
> --- a/criu/image.c
> +++ b/criu/image.c
> @@ -360,8 +360,7 @@ int do_open_remote_image(int dfd, char *path, int flags)
>
> if (fchdir(save) < 0) {
> pr_perror("fchdir to save failed");
> - close(save);
> - return -1;
> + ret = -1;
> }
> close(save);
>
> --
> 2.14.3
>
> _______________________________________________
> CRIU mailing list
> CRIU at openvz.org
> https://lists.openvz.org/mailman/listinfo/criu
More information about the CRIU
mailing list