summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorMasahiro Yamada <masahiroy@kernel.org>2023-12-03 10:49:33 +0100
committerMasahiro Yamada <masahiroy@kernel.org>2023-12-10 07:34:37 +0100
commit5cac96f937021de3b0fbc60cdc6d6c4ee5b2456d (patch)
treedffaf8b0ee00ca4006387d661c7265bb6b7ff387 /scripts
parentmodpost: inform compilers that fatal() never returns (diff)
downloadlinux-5cac96f937021de3b0fbc60cdc6d6c4ee5b2456d.tar.xz
linux-5cac96f937021de3b0fbc60cdc6d6c4ee5b2456d.zip
modpost: remove unneeded initializer in section_rel()
This initializer was added to avoid -Wmaybe-uninitialized (gcc) and -Wsometimes-uninitialized (clang) warnings. Now that compilers recognize fatal() never returns, it is unneeded. Signed-off-by: Masahiro Yamada <masahiroy@kernel.org> Reviewed-by: Nathan Chancellor <nathan@kernel.org>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/mod/modpost.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/mod/modpost.c b/scripts/mod/modpost.c
index c13bc9095df3..3233946fa5f6 100644
--- a/scripts/mod/modpost.c
+++ b/scripts/mod/modpost.c
@@ -1421,7 +1421,7 @@ static void section_rel(struct module *mod, struct elf_info *elf,
for (rel = start; rel < stop; rel++) {
Elf_Sym *tsym;
- Elf_Addr taddr = 0, r_offset;
+ Elf_Addr taddr, r_offset;
unsigned int r_type, r_sym;
void *loc;