Commit
871beb8c313ab270242022d314e37db5044e2bab
Exists in
master
and in
16 other branches
dlt-processor-sdk-linux-03.00.00.04, processor-sdk-linux-01.00.00, processor-sdk-linux-02.00.01, smarc-ti-linux-3.14.y, smarc-ti-linux-3.15.y, smarc-ti-lsk-linux-4.1.y, smarct3x-processor-sdk-04.01.00.06, smarct3x-processor-sdk-linux-02.00.01, smarct3x-processor-sdk-linux-03.00.00.04, smarct4x-800-processor-sdk-linux-02.00.01, smarct4x-processor-sdk-04.01.00.06, smarct4x-processor-sdk-linux-02.00.01, smarct4x-processor-sdk-linux-03.00.00.04, ti-linux-3.14.y, ti-linux-3.15.y, ti-lsk-linux-4.1.y
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>
Showing
1 changed file
with
2 additions
and
2 deletions
Side-by-side Diff
... |
... |
@@ -848,9 +848,9 @@ |
848
|
848 |
static bool invalid_mkclean_vma(struct vm_area_struct *vma, void *arg) |
849
|
849 |
{ |
850
|
850 |
if (vma->vm_flags & VM_SHARED) |
851
|
|
- return 0; |
|
851 |
+ return false; |
852
|
852 |
|
853
|
|
- return 1; |
|
853 |
+ return true; |
854
|
854 |
} |
855
|
855 |
|
856
|
856 |
int page_mkclean(struct page *page) |