Commit 08ed62d7 authored by Dmitry Safonov's avatar Dmitry Safonov Committed by Pavel Emelyanov

path: drop redundant local-scope vars writes

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: 's avatarDmitry Safonov <dsafonov@virtuozzo.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@virtuozzo.com>
parent d4c320a5
...@@ -95,8 +95,6 @@ char *mnt_get_sibling_path(struct mount_info *m, ...@@ -95,8 +95,6 @@ char *mnt_get_sibling_path(struct mount_info *m,
rpath++; rpath++;
off = snprintf(path, len, "/%s", rpath); off = snprintf(path, len, "/%s", rpath);
len -= off;
path += off;
return buf; return buf;
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment