[CRIU] [PATCHv1] Remove a redundant "return" statement

Radostin Stoyanov rstoyanov1 at gmail.com
Sun Feb 11 15:04:41 MSK 2018


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



More information about the CRIU mailing list