mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] mm/mmap: remove unnecessary assignment
@ 2013-08-29  1:23 Yanchuan Nian
  2013-08-29  6:24 ` David Rientjes
  0 siblings, 1 reply; 2+ messages in thread
From: Yanchuan Nian @ 2013-08-29  1:23 UTC (permalink / raw)
  To: akpm; +Cc: linux-kernel, Yanchuan Nian

From: Yanchuan Nian <ycnian@gmail.com>

pgoff is not used after the statement "pgoff = vma->vm_pgoff;",
so the assignment is redundant.

Signed-off-by: Yanchuan Nian <ycnian@gmail.com>
---
 mm/mmap.c |    1 -
 1 files changed, 0 insertions(+), 1 deletions(-)

diff --git a/mm/mmap.c b/mm/mmap.c
index 2664a47..e7d7231 100644
--- a/mm/mmap.c
+++ b/mm/mmap.c
@@ -1508,7 +1508,6 @@ munmap_back:
 		WARN_ON_ONCE(addr != vma->vm_start);
 
 		addr = vma->vm_start;
-		pgoff = vma->vm_pgoff;
 		vm_flags = vma->vm_flags;
 	} else if (vm_flags & VM_SHARED) {
 		if (unlikely(vm_flags & (VM_GROWSDOWN|VM_GROWSUP)))
-- 
1.7.4.4


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

* Re: [PATCH] mm/mmap: remove unnecessary assignment
  2013-08-29  1:23 [PATCH] mm/mmap: remove unnecessary assignment Yanchuan Nian
@ 2013-08-29  6:24 ` David Rientjes
  0 siblings, 0 replies; 2+ messages in thread
From: David Rientjes @ 2013-08-29  6:24 UTC (permalink / raw)
  To: Yanchuan Nian; +Cc: akpm, linux-kernel

On Thu, 29 Aug 2013, Yanchuan Nian wrote:

> From: Yanchuan Nian <ycnian@gmail.com>
> 
> pgoff is not used after the statement "pgoff = vma->vm_pgoff;",
> so the assignment is redundant.
> 
> Signed-off-by: Yanchuan Nian <ycnian@gmail.com>

Acked-by: David Rientjes <rientjes@google.com>

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

end of thread, other threads:[~2013-08-29  6:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-08-29  1:23 [PATCH] mm/mmap: remove unnecessary assignment Yanchuan Nian
2013-08-29  6:24 ` David Rientjes

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

all inboxes | Powered by JetHome®