projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d6622f6
)
mm: remove unncessary ret in page_referenced
author
Minchan Kim
<
[email protected]
>
Wed, 3 May 2017 21:54:00 +0000
(14:54 -0700)
committer
Linus Torvalds
<
[email protected]
>
Wed, 3 May 2017 22:52:09 +0000
(15:52 -0700)
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]
>
mm/rmap.c
patch
|
blob
|
history
diff --git
a/mm/rmap.c
b/mm/rmap.c
index a19bd8b8ab0d5d16f245bebf7b734a3c7fe69ffd..4baf504e4213aff2cdbb5d7612c48a7ebb48fbcb 100644
(file)
--- 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;
}
- r
et = r
map_walk(page, &rwc);
+ rmap_walk(page, &rwc);
*vm_flags = pra.vm_flags;
if (we_locked)