]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
confile: parse_idmaps() remove dead assignments
authorChristian Brauner <christian.brauner@ubuntu.com>
Sun, 10 Sep 2017 06:00:50 +0000 (08:00 +0200)
committerStéphane Graber <stgraber@ubuntu.com>
Sun, 24 Sep 2017 04:39:17 +0000 (00:39 -0400)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/confile_utils.c

index dd3548e5bc6a22beea6a91ae0a945f6dc705e1d7..a7d761e2e7cf5e3b59c2a24e1fbab785656dddfe 100644 (file)
@@ -90,8 +90,6 @@ int parse_idmaps(const char *idmap, char *type, unsigned long *nsid,
 
        /* Move beyond \0. */
        slide++;
-       /* align */
-       window = slide;
        /* Validate that only whitespace follows. */
        slide += strspn(slide, " \t\r");
        /* If there was only one whitespace then we whiped it with our \0 above.
@@ -116,8 +114,6 @@ int parse_idmaps(const char *idmap, char *type, unsigned long *nsid,
 
        /* Move beyond \0. */
        slide++;
-       /* align */
-       window = slide;
        /* Validate that only whitespace follows. */
        slide += strspn(slide, " \t\r");
        /* If there was only one whitespace then we whiped it with our \0 above.