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

[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>

authored by

David Rientjes and committed by
Linus Torvalds
8de61e69 045f147f

+1 -2
+1 -2
fs/binfmt_elf.c
··· 544 544 unsigned long reloc_func_desc = 0; 545 545 char passed_fileno[6]; 546 546 struct files_struct *files; 547 - int have_pt_gnu_stack, executable_stack = EXSTACK_DEFAULT; 547 + int executable_stack = EXSTACK_DEFAULT; 548 548 unsigned long def_flags = 0; 549 549 struct { 550 550 struct elfhdr elf_ex; ··· 707 707 executable_stack = EXSTACK_DISABLE_X; 708 708 break; 709 709 } 710 - have_pt_gnu_stack = (i < loc->elf_ex.e_phnum); 711 710 712 711 /* Some simple consistency checks for the interpreter */ 713 712 if (elf_interpreter) {