mirror of
https://github.com/torvalds/linux.git
synced 2024-12-27 13:22:23 +00:00
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>
This commit is contained in:
parent
16a473f60e
commit
5cac96f937
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user