Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

x86, relocs: Remove an unused variable

sh_symtab is set but not used.

Signed-off-by: Kusanagi Kouichi <slash@ac.auone-net.jp>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>

authored by

Kusanagi Kouichi and committed by
Jiri Kosina
42a6bd20 59bf8964

-2
-2
arch/x86/boot/compressed/relocs.c
··· 403 403 for (i = 0; i < ehdr.e_shnum; i++) { 404 404 struct section *sec = &secs[i]; 405 405 char *sym_strtab; 406 - Elf32_Sym *sh_symtab; 407 406 int j; 408 407 409 408 if (sec->shdr.sh_type != SHT_SYMTAB) { 410 409 continue; 411 410 } 412 - sh_symtab = sec->symtab; 413 411 sym_strtab = sec->link->strtab; 414 412 for (j = 0; j < sec->shdr.sh_size/sizeof(Elf32_Sym); j++) { 415 413 Elf32_Sym *sym;