]> git.proxmox.com Git - mirror_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:19:58 +0000 (00:19 -0400)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/confile_utils.c

index d43d516db5973538f5c5761822f44c5c4433267b..e4917880923d0f809401e2b0ee6c358a915f38a2 100644 (file)
@@ -92,8 +92,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.
@@ -118,8 +116,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.