aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Rientjes <rientjes@cs.washington.edu>2006-12-06 23:40:16 -0500
committerLinus Torvalds <torvalds@woody.osdl.org>2006-12-07 11:39:44 -0500
commit8de61e69c2feb10e5391cca67a3faf1d2bf77ce0 (patch)
treee16999ca73e4095e2e7112608a57342e816eac70
parent045f147f3290395661b56b9231fc4d221e150963 (diff)
[PATCH] fs: remove unused variable
Removed unused 'have_pt_gnu_stack' variable. Reported by David Binderman <dcb314@hotmail.com> Signed-off-by: David Rientjes <rientjes@cs.washington.edu> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
-rw-r--r--fs/binfmt_elf.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/binfmt_elf.c b/fs/binfmt_elf.c
index 14ea630a857c..be5869d34999 100644
--- a/fs/binfmt_elf.c
+++ b/fs/binfmt_elf.c
@@ -544,7 +544,7 @@ static int load_elf_binary(struct linux_binprm *bprm, struct pt_regs *regs)
544 unsigned long reloc_func_desc = 0; 544 unsigned long reloc_func_desc = 0;
545 char passed_fileno[6]; 545 char passed_fileno[6];
546 struct files_struct *files; 546 struct files_struct *files;
547 int have_pt_gnu_stack, executable_stack = EXSTACK_DEFAULT; 547 int executable_stack = EXSTACK_DEFAULT;
548 unsigned long def_flags = 0; 548 unsigned long def_flags = 0;
549 struct { 549 struct {
550 struct elfhdr elf_ex; 550 struct elfhdr elf_ex;
@@ -707,7 +707,6 @@ static int load_elf_binary(struct linux_binprm *bprm, struct pt_regs *regs)
707 executable_stack = EXSTACK_DISABLE_X; 707 executable_stack = EXSTACK_DISABLE_X;
708 break; 708 break;
709 } 709 }
710 have_pt_gnu_stack = (i < loc->elf_ex.e_phnum);
711 710
712 /* Some simple consistency checks for the interpreter */ 711 /* Some simple consistency checks for the interpreter */
713 if (elf_interpreter) { 712 if (elf_interpreter) {