diff options
author | Fengguang Wu <fengguang.wu@intel.com> | 2014-01-23 15:53:41 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-01-23 16:36:53 -0800 |
commit | 871beb8c313ab270242022d314e37db5044e2bab (patch) | |
tree | fe1d89d72e40d6455c23bdf94236f3454dd8b6a4 | |
parent | a5998061daab27802c418debe662be98a6e42874 (diff) | |
download | op-kernel-dev-871beb8c313ab270242022d314e37db5044e2bab.zip op-kernel-dev-871beb8c313ab270242022d314e37db5044e2bab.tar.gz |
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: Fengguang Wu <fengguang.wu@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
-rw-r--r-- | mm/rmap.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -848,9 +848,9 @@ out: 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) |