mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 20:51:03 +02:00
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: Masahiro Yamada <masahiroy@kernel.org>
This commit is contained in:
@@ -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;
|
||||||
|
Reference in New Issue
Block a user