mm: remove unncessary ret in page_referenced
Subsystems (2)
[email protected]
maintainerPATCH 48/102 mm: remove unncessary ret in page_referenced
From: Minchan Kim <[email protected]>
Subject: mm: remove unncessary ret in page_referenced
Nobody uses ret variable. Remove it.
Signed-off-by Minchan Kim <[email protected]>
Acked-by Hillf Danton <[email protected]>
Cc Johannes Weiner <[email protected]>
Cc Michal Hocko <[email protected]>
Cc Kirill A. Shutemov <[email protected]>
Cc Anshuman Khandual <[email protected]>
Cc Vlastimil Babka <[email protected]>
Cc Naoya Horiguchi <[email protected]>
Signed-off-by Andrew Morton <[email protected]>
---
mm/rmap.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
mm/rmap.c renamed from mm/rmap.c~mm-remove-unncessary-ret-in-page_referenced +1 -2
@@ -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)
_