Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

+2 -2
+2 -2
scripts/mod/sumversion.c
··· 330 330 line++; 331 331 p = line; 332 332 333 - if (strncmp(line, "source_", sizeof("source_")-1) == 0) { 333 + if (strstarts(line, "source_")) { 334 334 p = strrchr(line, ' '); 335 335 if (!p) { 336 336 warn("malformed line: %s\n", line); ··· 344 344 } 345 345 continue; 346 346 } 347 - if (strncmp(line, "deps_", sizeof("deps_")-1) == 0) { 347 + if (strstarts(line, "deps_")) { 348 348 check_files = 1; 349 349 continue; 350 350 }