summaryrefslogtreecommitdiffstats
path: root/scripts/kallsyms.c
diff options
context:
space:
mode:
authorMasahiro Yamada <masahiroy@kernel.org>2024-09-07 10:53:23 +0200
committerMasahiro Yamada <masahiroy@kernel.org>2024-09-20 02:21:52 +0200
commit9a418218dadf913fe78dbe6ad6b2e31e721b84ef (patch)
tree23daa4aabf0c926e6a9b3a63ed10e40ee1159f1f /scripts/kallsyms.c
parentkallsyms: squash output_address() (diff)
downloadlinux-9a418218dadf913fe78dbe6ad6b2e31e721b84ef.tar.xz
linux-9a418218dadf913fe78dbe6ad6b2e31e721b84ef.zip
kallsyms: change overflow variable to bool type
Change the 'overflow' variable to bool. Also, remove unnecessary parentheses. Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Diffstat (limited to 'scripts/kallsyms.c')
-rw-r--r--scripts/kallsyms.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/scripts/kallsyms.c b/scripts/kallsyms.c
index f6bb7fb2536b..03852da3d249 100644
--- a/scripts/kallsyms.c
+++ b/scripts/kallsyms.c
@@ -455,17 +455,17 @@ static void write_src(void)
*/
long long offset;
- int overflow;
+ bool overflow;
if (!absolute_percpu) {
offset = table[i]->addr - relative_base;
- overflow = (offset < 0 || offset > UINT_MAX);
+ overflow = offset < 0 || offset > UINT_MAX;
} else if (symbol_absolute(table[i])) {
offset = table[i]->addr;
- overflow = (offset < 0 || offset > INT_MAX);
+ overflow = offset < 0 || offset > INT_MAX;
} else {
offset = relative_base - table[i]->addr - 1;
- overflow = (offset < INT_MIN || offset >= 0);
+ overflow = offset < INT_MIN || offset >= 0;
}
if (overflow) {
fprintf(stderr, "kallsyms failure: "