diff options
author | Adrian Bunk <bunk@kernel.org> | 2008-10-16 01:01:22 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2008-10-16 14:21:30 -0400 |
commit | d2efa6d5ce14f92d13e2710f7343687a9acfd324 (patch) | |
tree | ac206ab4734b64e6fc04402b3289e72f102162df /arch/um/kernel/exec.c | |
parent | b25f29b0da23f4f784f9bcae954b157e1f45cc69 (diff) |
uml: remove the dead TTY_LOG code
Remove the dead CONFIG_TTY_LOG (no kconfig option).
Reported-by: Robert P. J. Day <rpjday@crashcourse.ca>
Signed-off-by: Adrian Bunk <bunk@kernel.org>
Cc: Jeff Dike <jdike@addtoit.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/um/kernel/exec.c')
-rw-r--r-- | arch/um/kernel/exec.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/arch/um/kernel/exec.c b/arch/um/kernel/exec.c index f5d7f4569ba7..598711c62c82 100644 --- a/arch/um/kernel/exec.c +++ b/arch/um/kernel/exec.c | |||
@@ -42,23 +42,11 @@ void start_thread(struct pt_regs *regs, unsigned long eip, unsigned long esp) | |||
42 | PT_REGS_SP(regs) = esp; | 42 | PT_REGS_SP(regs) = esp; |
43 | } | 43 | } |
44 | 44 | ||
45 | #ifdef CONFIG_TTY_LOG | ||
46 | extern void log_exec(char **argv, void *tty); | ||
47 | #endif | ||
48 | |||
49 | static long execve1(char *file, char __user * __user *argv, | 45 | static long execve1(char *file, char __user * __user *argv, |
50 | char __user *__user *env) | 46 | char __user *__user *env) |
51 | { | 47 | { |
52 | long error; | 48 | long error; |
53 | #ifdef CONFIG_TTY_LOG | ||
54 | struct tty_struct *tty; | ||
55 | 49 | ||
56 | mutex_lock(&tty_mutex); | ||
57 | tty = get_current_tty(); | ||
58 | if (tty) | ||
59 | log_exec(argv, tty); | ||
60 | mutex_unlock(&tty_mutex); | ||
61 | #endif | ||
62 | error = do_execve(file, argv, env, ¤t->thread.regs); | 50 | error = do_execve(file, argv, env, ¤t->thread.regs); |
63 | if (error == 0) { | 51 | if (error == 0) { |
64 | task_lock(current); | 52 | task_lock(current); |