All of lore.kernel.org
 help / color / mirror / Atom feed
* [uml-devel] [PATCH] uml: Remove an unused variable from mconsole_stack
@ 2007-11-29 15:50 Karol Swietlicki
  2007-11-30 15:12 ` Jeff Dike
  0 siblings, 1 reply; 2+ messages in thread
From: Karol Swietlicki @ 2007-11-29 15:50 UTC (permalink / raw)
  To: Jeff Dike; +Cc: uml-devel

This patch removes one more unused variable from the uml code.
This time the variable is removed from mconsole_stack.

I tested this together with my mconsole stopping patch, so it should
work just fine.

Karol Swietlicki

Signed-off-by: Karol Swietlicki <magotari@gmail.com>

---
diff -rupN orig/arch/um/drivers/mconsole_kern.c
linux-2.6.24-rc3-mm2/arch/um/drivers/mconsole_kern.c
--- orig/arch/um/drivers/mconsole_kern.c	2007-11-29 12:56:06.000000000 +0100
+++ linux-2.6.24-rc3-mm2/arch/um/drivers/mconsole_kern.c	2007-11-29
16:35:39.000000000 +0100
@@ -741,7 +753,6 @@ void mconsole_stack(struct mc_request *r
 {
 	char *ptr = req->request.data;
 	int pid_requested= -1;
-	struct task_struct *from = NULL;
 	struct task_struct *to = NULL;

 	/*
@@ -763,8 +774,6 @@ void mconsole_stack(struct mc_request *r
 		return;
 	}

-	from = current;
-
 	to = find_task_by_pid(pid_requested);
 	if ((to == NULL) || (pid_requested == 0)) {
 		mconsole_reply(req, "Couldn't find that pid", 1, 0);

-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [uml-devel] [PATCH] uml: Remove an unused variable from mconsole_stack
  2007-11-29 15:50 [uml-devel] [PATCH] uml: Remove an unused variable from mconsole_stack Karol Swietlicki
@ 2007-11-30 15:12 ` Jeff Dike
  0 siblings, 0 replies; 2+ messages in thread
From: Jeff Dike @ 2007-11-30 15:12 UTC (permalink / raw)
  To: Karol Swietlicki; +Cc: uml-devel

On Thu, Nov 29, 2007 at 04:50:41PM +0100, Karol Swietlicki wrote:
> This patch removes one more unused variable from the uml code.

Thanks, I'll send these both to Andrew.

				Jeff

-- 
Work email - jdike at linux dot intel dot com

-------------------------------------------------------------------------
SF.Net email is sponsored by: The Future of Linux Business White Paper
from Novell.  From the desktop to the data center, Linux is going
mainstream.  Let it simplify your IT future.
http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2007-11-30 15:12 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-29 15:50 [uml-devel] [PATCH] uml: Remove an unused variable from mconsole_stack Karol Swietlicki
2007-11-30 15:12 ` Jeff Dike

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.