linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mm: memory: remove unreachable code
@ 2011-05-08 21:18 Maxin B John
  2011-05-08 21:29 ` Rik van Riel
  0 siblings, 1 reply; 3+ messages in thread
From: Maxin B John @ 2011-05-08 21:18 UTC (permalink / raw)
  To: linux-kernel; +Cc: akpm, riel, walken, aarcange, hughd, linux-mm

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>

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

end of thread, other threads:[~2011-05-08 21:45 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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:44   ` Maxin John

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox