diff options
author | Masahiro Yamada <masahiroy@kernel.org> | 2022-05-01 10:40:07 +0200 |
---|---|---|
committer | Masahiro Yamada <masahiroy@kernel.org> | 2022-05-07 20:17:00 +0200 |
commit | 58e01fcae18c9d01be701bec9e9a8ee58269c7c1 (patch) | |
tree | 44e5a43612e0000b3626f7a5beb9044a3a2e2cd0 /scripts/mod/sumversion.c | |
parent | ia64: make the install target not depend on any build artifact (diff) | |
download | linux-58e01fcae18c9d01be701bec9e9a8ee58269c7c1.tar.xz linux-58e01fcae18c9d01be701bec9e9a8ee58269c7c1.zip |
modpost: use bool type where appropriate
Use 'bool' to clarify that the valid value is true or false.
Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
Diffstat (limited to 'scripts/mod/sumversion.c')
-rw-r--r-- | scripts/mod/sumversion.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/scripts/mod/sumversion.c b/scripts/mod/sumversion.c index 79bb9eaa65ac..6bf9caca0968 100644 --- a/scripts/mod/sumversion.c +++ b/scripts/mod/sumversion.c @@ -290,13 +290,11 @@ static int parse_file(const char *fname, struct md4_ctx *md) return 1; } /* Check whether the file is a static library or not */ -static int is_static_library(const char *objfile) +static bool is_static_library(const char *objfile) { int len = strlen(objfile); - if (objfile[len - 2] == '.' && objfile[len - 1] == 'a') - return 1; - else - return 0; + + return objfile[len - 2] == '.' && objfile[len - 1] == 'a'; } /* We have dir/file.o. Open dir/.file.o.cmd, look for source_ and deps_ line |