[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20120401082932.D5E066FC03D@msa105.auone-net.jp>
Date: Sun, 1 Apr 2012 17:29:32 +0900
From: Kusanagi Kouichi <slash@...auone-net.jp>
To: "H. Peter Anvin" <hpa@...or.com>
Cc: Jiri Kosina <trivial@...nel.org>, linux-kernel@...r.kernel.org
Subject: [PATCH] x86, relocs: Remove an unused variable
sh_symtab is set but not used.
Signed-off-by: Kusanagi Kouichi <slash@...auone-net.jp>
---
arch/x86/boot/compressed/relocs.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/arch/x86/boot/compressed/relocs.c b/arch/x86/boot/compressed/relocs.c
index d3c0b02..fb7117a 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)
for (i = 0; i < ehdr.e_shnum; i++) {
struct section *sec = &secs[i];
char *sym_strtab;
- Elf32_Sym *sh_symtab;
int j;
if (sec->shdr.sh_type != SHT_SYMTAB) {
continue;
}
- sh_symtab = sec->symtab;
sym_strtab = sec->link->strtab;
for (j = 0; j < sec->shdr.sh_size/sizeof(Elf32_Sym); j++) {
Elf32_Sym *sym;
--
1.7.9.5
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists