From: Yanchuan Nian Date: Wed, 11 Sep 2013 21:23:05 +0000 (-0700) Subject: mm/mmap: remove unnecessary assignment X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2d8a17813ec817fa58addd2c92b4ca8cae5bafbb;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git 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 Acked-by: David Rientjes Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/mm/mmap.c b/mm/mmap.c index 51958d192a48..9d548512ff8a 100644 --- a/mm/mmap.c +++ b/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);