Commit 3f9070a6 authored by Masahiro Yamada's avatar Masahiro Yamada

fixdep: remove redundant null character check

If *q is '\0', the condition (isalnum(*q) || *q == '_') is false anyway.

It is redundant to ensure non-zero *q.
Signed-off-by: default avatarMasahiro Yamada <masahiroy@kernel.org>
parent 87d660f0
...@@ -246,7 +246,7 @@ static void parse_config_file(const char *p) ...@@ -246,7 +246,7 @@ static void parse_config_file(const char *p)
} }
p += 7; p += 7;
q = p; q = p;
while (*q && (isalnum(*q) || *q == '_')) while (isalnum(*q) || *q == '_')
q++; q++;
if (str_ends_with(p, q - p, "_MODULE")) if (str_ends_with(p, q - p, "_MODULE"))
r = q - 7; r = q - 7;
......
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