[CRIU] [PATCH 09/13] parasite: don't set ret if it is not going to be read
Andrey Vagin
avagin at openvz.org
Wed Apr 3 13:31:08 EDT 2013
pie/parasite.c:308:3: warning: Value stored to 'ret' is never read
ret = -1;
Signed-off-by: Andrey Vagin <avagin at openvz.org>
---
pie/parasite.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/pie/parasite.c b/pie/parasite.c
index 9acb138..29137f0 100644
--- a/pie/parasite.c
+++ b/pie/parasite.c
@@ -305,7 +305,6 @@ static int parasite_get_proc_fd()
if (sys_mount("proc", proc_mountpoint, "proc", MS_MGC_VAL, NULL)) {
pr_err("mount failed\n");
- ret = -1;
goto out_rmdir;
}
--
1.7.11.7
More information about the CRIU
mailing list