Subject: + mm-mmap-remove-unnecessary-assignment.patch added to -mm tree To: ycnian@xxxxxxxxx,rientjes@xxxxxxxxxx From: akpm@xxxxxxxxxxxxxxxxxxxx Date: Thu, 29 Aug 2013 12:59:05 -0700 The patch titled Subject: mm/mmap: remove unnecessary assignment has been added to the -mm tree. Its filename is mm-mmap-remove-unnecessary-assignment.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/mm-mmap-remove-unnecessary-assignment.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/mm-mmap-remove-unnecessary-assignment.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Yanchuan Nian <ycnian@xxxxxxxxx> Subject: 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@xxxxxxxxx> Acked-by: David Rientjes <rientjes@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/mmap.c | 1 - 1 file changed, 1 deletion(-) diff -puN mm/mmap.c~mm-mmap-remove-unnecessary-assignment mm/mmap.c --- a/mm/mmap.c~mm-mmap-remove-unnecessary-assignment +++ a/mm/mmap.c @@ -1566,7 +1566,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) { error = shmem_zero_setup(vma); _ Patches currently in -mm which might be from ycnian@xxxxxxxxx are mm-mmap-remove-unnecessary-assignment.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html