diff options
author | Yanchuan Nian <ycnian@gmail.com> | 2013-09-11 17:23:05 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2013-09-11 18:58:13 -0400 |
commit | 2d8a17813ec817fa58addd2c92b4ca8cae5bafbb (patch) | |
tree | f67c5a6e90c5d3f97b101213e04332eebadce0b3 /mm/mmap.c | |
parent | 146d7009b45cdb45ec3be8ad73177dae58f4bc91 (diff) |
mm/mmap: remove unnecessary assignment
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>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/mmap.c')
-rw-r--r-- | mm/mmap.c | 1 |
1 files changed, 0 insertions, 1 deletions
@@ -1566,7 +1566,6 @@ munmap_back: | |||
1566 | WARN_ON_ONCE(addr != vma->vm_start); | 1566 | WARN_ON_ONCE(addr != vma->vm_start); |
1567 | 1567 | ||
1568 | addr = vma->vm_start; | 1568 | addr = vma->vm_start; |
1569 | pgoff = vma->vm_pgoff; | ||
1570 | vm_flags = vma->vm_flags; | 1569 | vm_flags = vma->vm_flags; |
1571 | } else if (vm_flags & VM_SHARED) { | 1570 | } else if (vm_flags & VM_SHARED) { |
1572 | error = shmem_zero_setup(vma); | 1571 | error = shmem_zero_setup(vma); |