summaryrefslogtreecommitdiffstats
path: root/arch/um/kernel
diff options
context:
space:
mode:
authorRichard Weinberger <richard@nod.at>2011-07-25 17:12:55 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2011-07-25 20:57:13 -0700
commitf1c93e4946ae1cc268729451de6335a7e7d2bea9 (patch)
treeed1ed33faf640af3544963b0afc085ec8ed9e640 /arch/um/kernel
parent39073db15bf9016003e8a4e607d517f4928b713c (diff)
downloadblackbird-op-linux-f1c93e4946ae1cc268729451de6335a7e7d2bea9.tar.gz
blackbird-op-linux-f1c93e4946ae1cc268729451de6335a7e7d2bea9.zip
um: remove dead code
GCC 4.6's -Wunused-but-set-variable found some dead code. Signed-off-by: Richard Weinberger <richard@nod.at> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'arch/um/kernel')
-rw-r--r--arch/um/kernel/reboot.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/um/kernel/reboot.c b/arch/um/kernel/reboot.c
index 869bec9f2516..4d93dff6b371 100644
--- a/arch/um/kernel/reboot.c
+++ b/arch/um/kernel/reboot.c
@@ -20,9 +20,8 @@ static void kill_off_processes(void)
os_kill_ptraced_process(userspace_pid[0], 1);
else {
struct task_struct *p;
- int pid, me;
+ int pid;
- me = os_getpid();
for_each_process(p) {
if (p->mm == NULL)
continue;
OpenPOWER on IntegriCloud