From: "Karol Swietlicki" <magotari@gmail.com>
To: Jeff Dike <jdike@addtoit.com>
Cc: uml-devel <user-mode-linux-devel@lists.sourceforge.net>
Subject: [uml-devel] [PATCH] uml: Remove an unused variable from mconsole_stack
Date: Thu, 29 Nov 2007 16:50:41 +0100 [thread overview]
Message-ID: <ea9232d10711290750u5368e696qeb6c41a6da64637a@mail.gmail.com> (raw)
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
next reply other threads:[~2007-11-29 15:50 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-11-29 15:50 Karol Swietlicki [this message]
2007-11-30 15:12 ` [uml-devel] [PATCH] uml: Remove an unused variable from mconsole_stack Jeff Dike
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=ea9232d10711290750u5368e696qeb6c41a6da64637a@mail.gmail.com \
--to=magotari@gmail.com \
--cc=jdike@addtoit.com \
--cc=user-mode-linux-devel@lists.sourceforge.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox