[CRIU] [PATCH 6/8] path: drop redundant local-scope vars writes

Dmitry Safonov dsafonov at virtuozzo.com
Fri Jul 15 12:28:45 PDT 2016


path.c:98:2: warning: Value stored to 'len' is never read
        len -= off;
        ^      ~~~
path.c:99:2: warning: Value stored to 'path' is never read
        path += off;
        ^       ~~~

Signed-off-by: Dmitry Safonov <dsafonov at virtuozzo.com>
---
 criu/path.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/criu/path.c b/criu/path.c
index 533cb39dbcde..1c7c257a560f 100644
--- a/criu/path.c
+++ b/criu/path.c
@@ -95,8 +95,6 @@ char *mnt_get_sibling_path(struct mount_info *m,
 		rpath++;
 
 	off = snprintf(path, len, "/%s", rpath);
-	len -= off;
-	path += off;
 
 	return buf;
 }
-- 
2.9.0



More information about the CRIU mailing list