From: Pekka Enberg Date: Thu, 23 Jun 2005 07:09:09 +0000 (-0700) Subject: [PATCH] remove redundant vm_flags clearing from madvise.c X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=3bc1ee3e8f1c05c0f64a479c6d56eb34a6190599;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git [PATCH] remove redundant vm_flags clearing from madvise.c This patch removes redundant VM_ClearReadHint from mm/madvice.c which was left there by Prasanna's patch. Signed-off-by: Pekka Enberg Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/mm/madvise.c b/mm/madvise.c index e3108054733..54a5d3bc55d 100644 --- a/mm/madvise.c +++ b/mm/madvise.c @@ -65,7 +65,6 @@ static long madvise_behavior(struct vm_area_struct * vma, /* * vm_flags is protected by the mmap_sem held in write mode. */ - VM_ClearReadHint(vma); vma->vm_flags = new_flags; out: