cgfsng: remove unnecessary check

parent 7bb01e97
...@@ -2094,7 +2094,7 @@ static int convert_devpath(const char *invalue, char *dest) ...@@ -2094,7 +2094,7 @@ static int convert_devpath(const char *invalue, char *dest)
* A ' # comment' would be legal. Technically other text is not * A ' # comment' would be legal. Technically other text is not
* legal, we could check for that if we cared to. * 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 != ' ') if (*p != ' ')
continue; continue;
*p = '\0'; *p = '\0';
......
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