uml: remove unused variables in the context switcher

This patch removes a variable which was not used in two functions.  Yet
another code cleanup, nothing really significant.

Please note that I could not test this on x86_64. I don't have the
hardware for it.

[ jdike - Bits of tidying around the affected code.  Also, it's fine on
x86_64 ]

Signed-off-by: Karol Swietlicki <magotari@gmail.com>
Signed-off-by: Jeff Dike <jdike@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
Karol Swietlicki
2008-02-04 22:30:49 -08:00
committed by Linus Torvalds
parent ab8cda4347
commit 291248fd6e
4 changed files with 13 additions and 16 deletions

View File

@@ -8,11 +8,11 @@
#include "asm/uaccess.h"
#include "skas.h"
extern int arch_switch_tls(struct task_struct *from, struct task_struct *to);
extern int arch_switch_tls(struct task_struct *to);
void arch_switch_to(struct task_struct *from, struct task_struct *to)
void arch_switch_to(struct task_struct *to)
{
int err = arch_switch_tls(from, to);
int err = arch_switch_tls(to);
if (!err)
return;