提交 c24f386c 编写于 作者: M Minchan Kim 提交者: Linus Torvalds

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.orgSigned-off-by: NMinchan Kim <minchan@kernel.org>
Acked-by: NHillf Danton <hillf.zj@alibaba-inc.com>
Acked-by: NKirill A. Shutemov <kirill.shutemov@linux.intel.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Michal Hocko <mhocko@suse.com>
Cc: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Cc: Anshuman Khandual <khandual@linux.vnet.ibm.com>
Cc: Vlastimil Babka <vbabka@suse.cz>
Cc: Naoya Horiguchi <n-horiguchi@ah.jp.nec.com>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 d6622f63
...@@ -812,7 +812,6 @@ int page_referenced(struct page *page, ...@@ -812,7 +812,6 @@ int page_referenced(struct page *page,
struct mem_cgroup *memcg, struct mem_cgroup *memcg,
unsigned long *vm_flags) unsigned long *vm_flags)
{ {
int ret;
int we_locked = 0; int we_locked = 0;
struct page_referenced_arg pra = { struct page_referenced_arg pra = {
.mapcount = total_mapcount(page), .mapcount = total_mapcount(page),
...@@ -846,7 +845,7 @@ int page_referenced(struct page *page, ...@@ -846,7 +845,7 @@ int page_referenced(struct page *page,
rwc.invalid_vma = invalid_page_referenced_vma; rwc.invalid_vma = invalid_page_referenced_vma;
} }
ret = rmap_walk(page, &rwc); rmap_walk(page, &rwc);
*vm_flags = pra.vm_flags; *vm_flags = pra.vm_flags;
if (we_locked) if (we_locked)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册