Commit 871beb8c authored by Fengguang Wu's avatar Fengguang Wu Committed by Linus Torvalds

mm/rmap: fix coccinelle warnings

mm/rmap.c:851:9-10: WARNING: return of 0/1 in function 'invalid_mkclean_vma' with return type bool

 Return statements in functions returning bool should use
 true/false instead of 1/0.

Generated by: coccinelle/misc/boolreturn.cocci
Signed-off-by: default avatarFengguang Wu <fengguang.wu@intel.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent a5998061
...@@ -848,9 +848,9 @@ static int page_mkclean_one(struct page *page, struct vm_area_struct *vma, ...@@ -848,9 +848,9 @@ static int page_mkclean_one(struct page *page, struct vm_area_struct *vma,
static bool invalid_mkclean_vma(struct vm_area_struct *vma, void *arg) static bool invalid_mkclean_vma(struct vm_area_struct *vma, void *arg)
{ {
if (vma->vm_flags & VM_SHARED) if (vma->vm_flags & VM_SHARED)
return 0; return false;
return 1; return true;
} }
int page_mkclean(struct page *page) int page_mkclean(struct page *page)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment