From: Minchan Kim Date: Wed, 3 May 2017 21:54:00 +0000 (-0700) Subject: mm: remove unncessary ret in page_referenced X-Git-Tag: MMI-PSA29.97-13-9~5692^2~54 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c24f386c60b2269d532a23e70939ed8ce55d7005;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git mm: remove unncessary ret in page_referenced Nobody uses ret variable. Remove it. Link: http://lkml.kernel.org/r/1489555493-14659-2-git-send-email-minchan@kernel.org Signed-off-by: Minchan Kim Acked-by: Hillf Danton Acked-by: Kirill A. Shutemov Cc: Johannes Weiner Cc: Michal Hocko Cc: Kirill A. Shutemov Cc: Anshuman Khandual Cc: Vlastimil Babka Cc: Naoya Horiguchi Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/mm/rmap.c b/mm/rmap.c index a19bd8b8ab0d..4baf504e4213 100644 --- a/mm/rmap.c +++ b/mm/rmap.c @@ -812,7 +812,6 @@ int page_referenced(struct page *page, struct mem_cgroup *memcg, unsigned long *vm_flags) { - int ret; int we_locked = 0; struct page_referenced_arg pra = { .mapcount = total_mapcount(page), @@ -846,7 +845,7 @@ int page_referenced(struct page *page, rwc.invalid_vma = invalid_page_referenced_vma; } - ret = rmap_walk(page, &rwc); + rmap_walk(page, &rwc); *vm_flags = pra.vm_flags; if (we_locked)