Skip to content

Commit d844152

Browse files
Alex Shiandreas-gaisler
authored andcommitted
sparc: remove unused variable strtab
The commit 1b35a57 ("sparc32: Kill off software 32-bit multiply/divide routines") removed the last usage of strtab in funtion module_frob_arch_sections Therefore, it can be removed now. Reported-by: kernel test robot <lkp@intel.com> Cc: sparclinux@vger.kernel.org Cc: David S. Miller <davem@davemloft.net> Cc: Andreas Larsson <andreas@gaisler.com> Signed-off-by: Alex Shi <alexs@kernel.org> Reviewed-by: Andreas Larsson <andreas@gaisler.com> Signed-off-by: Andreas Larsson <andreas@gaisler.com>
1 parent 9796ba9 commit d844152

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

arch/sparc/kernel/module.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@ int module_frob_arch_sections(Elf_Ehdr *hdr,
2929
{
3030
unsigned int symidx;
3131
Elf_Sym *sym;
32-
char *strtab;
3332
int i;
3433

3534
for (symidx = 0; sechdrs[symidx].sh_type != SHT_SYMTAB; symidx++) {
@@ -39,7 +38,6 @@ int module_frob_arch_sections(Elf_Ehdr *hdr,
3938
}
4039
}
4140
sym = (Elf_Sym *)sechdrs[symidx].sh_addr;
42-
strtab = (char *)sechdrs[sechdrs[symidx].sh_link].sh_addr;
4341

4442
for (i = 1; i < sechdrs[symidx].sh_size / sizeof(Elf_Sym); i++) {
4543
if (sym[i].st_shndx == SHN_UNDEF) {

0 commit comments

Comments
 (0)