]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
cgfsng: remove unnecessary check
authorChristian Brauner <christian.brauner@ubuntu.com>
Sat, 9 Feb 2019 00:31:52 +0000 (01:31 +0100)
committerChristian Brauner <christian.brauner@ubuntu.com>
Sat, 9 Feb 2019 00:31:52 +0000 (01:31 +0100)
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
src/lxc/cgroups/cgfsng.c

index 9ef02c5dcc585c20845fc37bb8f972e78f79a288..2049363b38ecb8366efed215b81b7a4fdf9d123a 100644 (file)
@@ -2193,7 +2193,7 @@ static int convert_devpath(const char *invalue, char *dest)
         * A '    # comment' would be legal. Technically other text is not
         * legal, we could check for that if we cared to.
         */
-       for (n_parts = 1, p = path; *p && n_parts < 3; p++) {
+       for (n_parts = 1, p = path; *p; p++) {
                if (*p != ' ')
                        continue;
                *p = '\0';