[parisc-linux-cvs] Minor tidyup in process.c

Matthew Wilcox willy@ldl.fc.hp.com
Thu, 15 Feb 2001 20:07:21 -0700


Index: arch/parisc/kernel/process.c
===================================================================
RCS file: /home/cvs/parisc/linux/arch/parisc/kernel/process.c,v
retrieving revision 1.29
diff -u -p -r1.29 process.c
--- process.c	2001/02/13 18:12:56	1.29
+++ process.c	2001/02/16 03:02:24
@@ -36,8 +36,6 @@
 #include <asm/gsc.h>
 #include <asm/processor.h>
 
-spinlock_t semaphore_wake_lock = SPIN_LOCK_UNLOCKED;
-
 #ifdef __LP64__
 /* The 64-bit code should work equally well in 32-bit land but I didn't
  * want to take the time to confirm that.  -PB
@@ -230,7 +228,6 @@ copy_thread(int nr, unsigned long clone_
 	    struct task_struct * p, struct pt_regs * pregs)
 {
 	struct pt_regs * cregs = &(p->thread.regs);
-	long ksp;
 
 	*cregs = *pregs;
 
@@ -248,7 +245,7 @@ copy_thread(int nr, unsigned long clone_
 	 */
 	if (usp == 0) {
 		/* Kernel Thread */
-		ksp = (((unsigned long)(p)) + TASK_SZ_ALGN);
+		unsigned long ksp = (((unsigned long)(p)) + TASK_SZ_ALGN);
 		cregs->ksp = ksp;	    /* always return to kernel */
 #ifdef __LP64__
 		cregs->kpc = (unsigned long) &ret_from_kernel_thread;