Skip to content

Commit 3f9070a

Browse files
committed
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 <[email protected]>
1 parent 87d660f commit 3f9070a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/basic/fixdep.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ static void parse_config_file(const char *p)
246246
}
247247
p += 7;
248248
q = p;
249-
while (*q && (isalnum(*q) || *q == '_'))
249+
while (isalnum(*q) || *q == '_')
250250
q++;
251251
if (str_ends_with(p, q - p, "_MODULE"))
252252
r = q - 7;

0 commit comments

Comments
 (0)