Skip to content

Commit

Permalink
mm/rmap: fix coccinelle warnings
Browse files Browse the repository at this point in the history
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: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Fengguang Wu authored and Linus Torvalds committed Jan 24, 2014
1 parent a599806 commit 871beb8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mm/rmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
if (vma->vm_flags & VM_SHARED)
return 0;
return false;

return 1;
return true;
}

int page_mkclean(struct page *page)
Expand Down

0 comments on commit 871beb8

Please sign in to comment.