summaryrefslogtreecommitdiffstats
path: root/arch/um/sys-x86_64
diff options
context:
space:
mode:
authorKarol Swietlicki <magotari@gmail.com>2008-02-05 07:30:49 +0100
committerLinus Torvalds <torvalds@woody.linux-foundation.org>2008-02-05 18:44:26 +0100
commit291248fd6e371bcbfb8a77689c5d741a1527488f (patch)
tree249acacdd2ca8d8194415f22930b4b5bccc59d32 /arch/um/sys-x86_64
parentarch/um: remove duplicate includes (diff)
downloadlinux-291248fd6e371bcbfb8a77689c5d741a1527488f.tar.xz
linux-291248fd6e371bcbfb8a77689c5d741a1527488f.zip
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>
Diffstat (limited to 'arch/um/sys-x86_64')
-rw-r--r--arch/um/sys-x86_64/syscalls.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/um/sys-x86_64/syscalls.c b/arch/um/sys-x86_64/syscalls.c
index 86f6b18410ee..e437ee2215c5 100644
--- a/arch/um/sys-x86_64/syscalls.c
+++ b/arch/um/sys-x86_64/syscalls.c
@@ -105,7 +105,7 @@ long sys_clone(unsigned long clone_flags, unsigned long newsp,
return ret;
}
-void arch_switch_to(struct task_struct *from, struct task_struct *to)
+void arch_switch_to(struct task_struct *to)
{
if ((to->thread.arch.fs == 0) || (to->mm == NULL))
return;