mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2025-04-19 20:58:31 +09:00
modpost: use strstarts() to clean up parse_source_files()
No functional changes are intended. Signed-off-by: Masahiro Yamada <masahiroy@kernel.org> Reviewed-by: Nicolas Schier <nicolas@fjasle.eu>
This commit is contained in:
parent
59d60d26a5
commit
144fced685
@ -330,7 +330,7 @@ static int parse_source_files(const char *objfile, struct md4_ctx *md)
|
||||
line++;
|
||||
p = line;
|
||||
|
||||
if (strncmp(line, "source_", sizeof("source_")-1) == 0) {
|
||||
if (strstarts(line, "source_")) {
|
||||
p = strrchr(line, ' ');
|
||||
if (!p) {
|
||||
warn("malformed line: %s\n", line);
|
||||
@ -344,7 +344,7 @@ static int parse_source_files(const char *objfile, struct md4_ctx *md)
|
||||
}
|
||||
continue;
|
||||
}
|
||||
if (strncmp(line, "deps_", sizeof("deps_")-1) == 0) {
|
||||
if (strstarts(line, "deps_")) {
|
||||
check_files = 1;
|
||||
continue;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user