Skip to content

Commit

Permalink
cgfsng: remove unnecessary check
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
  • Loading branch information
Christian Brauner committed Feb 9, 2019
1 parent 6403a66 commit 0dbdb99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lxc/cgroups/cgfsng.c
Expand Up @@ -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';
Expand Down

0 comments on commit 0dbdb99

Please sign in to comment.