projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
59d60d2
)
modpost: use strstarts() to clean up parse_source_files()
author
Masahiro Yamada
<masahiroy@kernel.org>
Fri, 7 Feb 2025 17:50:55 +0000
(
02:50
+0900)
committer
Masahiro Yamada
<masahiroy@kernel.org>
Sat, 15 Mar 2025 12:16:22 +0000
(21:16 +0900)
No functional changes are intended.
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Nicolas Schier <nicolas@fjasle.eu>
scripts/mod/sumversion.c
patch
|
blob
|
blame
|
history
diff --git
a/scripts/mod/sumversion.c
b/scripts/mod/sumversion.c
index e79fc40d852f93dbfd9dc54166cea7c69643b705..3dd28b4d00991e081f42c2bcceab9ae99441df2f 100644
(file)
--- a/
scripts/mod/sumversion.c
+++ b/
scripts/mod/sumversion.c
@@
-330,7
+330,7
@@
static int parse_source_files(const char *objfile, struct md4_ctx *md)
line++;
p = line;
- if (str
ncmp(line, "source_", sizeof("source_")-1) == 0
) {
+ if (str
starts(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 (str
ncmp(line, "deps_", sizeof("deps_")-1) == 0
) {
+ if (str
starts(line, "deps_")
) {
check_files = 1;
continue;
}