mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
mm: remove unncessary ret in page_referenced
Nobody uses ret variable. Remove it. Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Minchan Kim <[email protected]> Acked-by: Hillf Danton <[email protected]> Acked-by: Kirill A. Shutemov <[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]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
d6622f6365
commit
c24f386c60
1 changed files with 1 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue