Skip to content

Commit 7c77cda

Browse files
k7k7H. Peter Anvin
authored andcommitted
x86, relocs: Remove an unused variable
sh_symtab is set but not used. [ hpa: putting this in urgent because of the sheer harmlessness of the patch: it quiets a build warning but does not change any generated code. ] Signed-off-by: Kusanagi Kouichi <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: H. Peter Anvin <[email protected]> Cc: <[email protected]>
1 parent f5c2347 commit 7c77cda

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

arch/x86/boot/compressed/relocs.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -403,13 +403,11 @@ static void print_absolute_symbols(void)
403403
for (i = 0; i < ehdr.e_shnum; i++) {
404404
struct section *sec = &secs[i];
405405
char *sym_strtab;
406-
Elf32_Sym *sh_symtab;
407406
int j;
408407

409408
if (sec->shdr.sh_type != SHT_SYMTAB) {
410409
continue;
411410
}
412-
sh_symtab = sec->symtab;
413411
sym_strtab = sec->link->strtab;
414412
for (j = 0; j < sec->shdr.sh_size/sizeof(Elf32_Sym); j++) {
415413
Elf32_Sym *sym;

0 commit comments

Comments
 (0)