aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKusanagi Kouichi2012-04-01 03:29:32 -0500
committerH. Peter Anvin2012-04-30 14:55:15 -0500
commit7c77cda0fe742ed07622827ce80963bbeebd1e3f (patch)
tree57c0c409f4c041287572dc2938ce3777d51766e6
parentf5c2347ee20a8d6964d6a6b1ad04f200f8d4dfa7 (diff)
downloadkernel-common-7c77cda0fe742ed07622827ce80963bbeebd1e3f.tar.gz
kernel-common-7c77cda0fe742ed07622827ce80963bbeebd1e3f.tar.xz
kernel-common-7c77cda0fe742ed07622827ce80963bbeebd1e3f.zip
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 <slash@ac.auone-net.jp> Link: http://lkml.kernel.org/r/20120401082932.D5E066FC03D@msa105.auone-net.jp Signed-off-by: H. Peter Anvin <hpa@linux.intel.com> Cc: <stable@vger.kernel.org>
-rw-r--r--arch/x86/boot/compressed/relocs.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/x86/boot/compressed/relocs.c b/arch/x86/boot/compressed/relocs.c
index d3c0b027766..fb7117a4ade 100644
--- a/arch/x86/boot/compressed/relocs.c
+++ b/arch/x86/boot/compressed/relocs.c
@@ -403,13 +403,11 @@ static void print_absolute_symbols(void)
403 for (i = 0; i < ehdr.e_shnum; i++) { 403 for (i = 0; i < ehdr.e_shnum; i++) {
404 struct section *sec = &secs[i]; 404 struct section *sec = &secs[i];
405 char *sym_strtab; 405 char *sym_strtab;
406 Elf32_Sym *sh_symtab;
407 int j; 406 int j;
408 407
409 if (sec->shdr.sh_type != SHT_SYMTAB) { 408 if (sec->shdr.sh_type != SHT_SYMTAB) {
410 continue; 409 continue;
411 } 410 }
412 sh_symtab = sec->symtab;
413 sym_strtab = sec->link->strtab; 411 sym_strtab = sec->link->strtab;
414 for (j = 0; j < sec->shdr.sh_size/sizeof(Elf32_Sym); j++) { 412 for (j = 0; j < sec->shdr.sh_size/sizeof(Elf32_Sym); j++) {
415 Elf32_Sym *sym; 413 Elf32_Sym *sym;