* [PATCH] mm/mmap.c: Remove unnecessary pgoff assignment
@ 2013-09-06 3:31 ` Zhang Yanfei
0 siblings, 0 replies; 2+ messages in thread
From: Zhang Yanfei @ 2013-09-06 3:31 UTC (permalink / raw)
To: Andrew Morton; +Cc: Linux MM, linux-kernel@vger.kernel.org
We never access variable pgoff later, so the assignment is
redundant. Remove it.
Signed-off-by: Zhang Yanfei <zhangyanfei@cn.fujitsu.com>
---
mm/mmap.c | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)
diff --git a/mm/mmap.c b/mm/mmap.c
index f9c97d1..db44f6a 100644
--- a/mm/mmap.c
+++ b/mm/mmap.c
@@ -1570,7 +1570,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.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/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [PATCH] mm/mmap.c: Remove unnecessary pgoff assignment
@ 2013-09-06 3:31 ` Zhang Yanfei
0 siblings, 0 replies; 2+ messages in thread
From: Zhang Yanfei @ 2013-09-06 3:31 UTC (permalink / raw)
To: Andrew Morton; +Cc: Linux MM, linux-kernel@vger.kernel.org
We never access variable pgoff later, so the assignment is
redundant. Remove it.
Signed-off-by: Zhang Yanfei <zhangyanfei@cn.fujitsu.com>
---
mm/mmap.c | 1 -
1 files changed, 0 insertions(+), 1 deletions(-)
diff --git a/mm/mmap.c b/mm/mmap.c
index f9c97d1..db44f6a 100644
--- a/mm/mmap.c
+++ b/mm/mmap.c
@@ -1570,7 +1570,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.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-09-06 3:32 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-09-06 3:31 [PATCH] mm/mmap.c: Remove unnecessary pgoff assignment Zhang Yanfei
2013-09-06 3:31 ` Zhang Yanfei
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.