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

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
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -246,7 +246,7 @@ static void parse_config_file(const char *p)
		}
		p += 7;
		q = p;
		while (*q && (isalnum(*q) || *q == '_'))
		while (isalnum(*q) || *q == '_')
			q++;
		if (str_ends_with(p, q - p, "_MODULE"))
			r = q - 7;