Skip to content

Commit 5cac96f

Browse files
committed
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>
1 parent 16a473f commit 5cac96f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/mod/modpost.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1421,7 +1421,7 @@ static void section_rel(struct module *mod, struct elf_info *elf,
14211421

14221422
for (rel = start; rel < stop; rel++) {
14231423
Elf_Sym *tsym;
1424-
Elf_Addr taddr = 0, r_offset;
1424+
Elf_Addr taddr, r_offset;
14251425
unsigned int r_type, r_sym;
14261426
void *loc;
14271427

0 commit comments

Comments
 (0)