From: Maxin B John <maxin.john@gmail.com>
To: linux-kernel@vger.kernel.org
Cc: akpm@linux-foundation.org, riel@redhat.com, walken@google.com,
aarcange@redhat.com, hughd@google.com, linux-mm@kvack.org
Subject: [PATCH] mm: memory: remove unreachable code
Date: Mon, 9 May 2011 00:18:34 +0300 [thread overview]
Message-ID: <20110508211834.GA4410@maxin> (raw)
Remove the unreachable code found in mm/memory.c
Signed-off-by: Maxin B. John <maxin.john@gmail.com>
---
diff --git a/mm/memory.c b/mm/memory.c
index 27f4253..d3b30af 100644
--- a/mm/memory.c
+++ b/mm/memory.c
@@ -3695,7 +3695,6 @@ static int __access_remote_vm(struct task_struct *tsk, struct mm_struct *mm,
if (ret <= 0)
#endif
break;
- bytes = ret;
} else {
bytes = len;
offset = addr & (PAGE_SIZE-1);
WARNING: multiple messages have this Message-ID (diff)
From: Maxin B John <maxin.john@gmail.com>
To: linux-kernel@vger.kernel.org
Cc: akpm@linux-foundation.org, riel@redhat.com, walken@google.com,
aarcange@redhat.com, hughd@google.com, linux-mm@kvack.org
Subject: [PATCH] mm: memory: remove unreachable code
Date: Mon, 9 May 2011 00:18:34 +0300 [thread overview]
Message-ID: <20110508211834.GA4410@maxin> (raw)
Remove the unreachable code found in mm/memory.c
Signed-off-by: Maxin B. John <maxin.john@gmail.com>
---
diff --git a/mm/memory.c b/mm/memory.c
index 27f4253..d3b30af 100644
--- a/mm/memory.c
+++ b/mm/memory.c
@@ -3695,7 +3695,6 @@ static int __access_remote_vm(struct task_struct *tsk, struct mm_struct *mm,
if (ret <= 0)
#endif
break;
- bytes = ret;
} else {
bytes = len;
offset = addr & (PAGE_SIZE-1);
--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org. For more info on Linux MM,
see: http://www.linux-mm.org/ .
Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
next reply other threads:[~2011-05-08 21:18 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-08 21:18 Maxin B John [this message]
2011-05-08 21:18 ` [PATCH] mm: memory: remove unreachable code Maxin B John
2011-05-08 21:29 ` Rik van Riel
2011-05-08 21:29 ` Rik van Riel
2011-05-08 21:44 ` Maxin John
2011-05-08 21:44 ` Maxin John
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=20110508211834.GA4410@maxin \
--to=maxin.john@gmail.com \
--cc=aarcange@redhat.com \
--cc=akpm@linux-foundation.org \
--cc=hughd@google.com \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-mm@kvack.org \
--cc=riel@redhat.com \
--cc=walken@google.com \
/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 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.