diff options
author | Nicholas Krause <xerofoify@gmail.com> | 2015-09-04 18:48:24 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2015-09-04 19:54:41 -0400 |
commit | 1ecef9ed0f63bfff58895a4f3aec751e907c7f3d (patch) | |
tree | ff4d12fc524d1701747946ee3a87d8dc4b453dd0 /mm/madvise.c | |
parent | ca1d6c7d9d461effa2c4e8b9b227a14e9fdcf1cc (diff) |
mm/madvise.c: make madvise_behaviour_valid() return bool
This makes the madvise_bahaviour_valid() function return bool due to
this particular function always returning the value of either one or
zero as its return value.
Signed-off-by: Nicholas Krause <xerofoify@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/madvise.c')
-rw-r--r-- | mm/madvise.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/mm/madvise.c b/mm/madvise.c index 911357973905..ce3a4222c7e7 100644 --- a/mm/madvise.c +++ b/mm/madvise.c | |||
@@ -386,7 +386,7 @@ madvise_vma(struct vm_area_struct *vma, struct vm_area_struct **prev, | |||
386 | } | 386 | } |
387 | } | 387 | } |
388 | 388 | ||
389 | static int | 389 | static bool |
390 | madvise_behavior_valid(int behavior) | 390 | madvise_behavior_valid(int behavior) |
391 | { | 391 | { |
392 | switch (behavior) { | 392 | switch (behavior) { |
@@ -408,10 +408,10 @@ madvise_behavior_valid(int behavior) | |||
408 | #endif | 408 | #endif |
409 | case MADV_DONTDUMP: | 409 | case MADV_DONTDUMP: |
410 | case MADV_DODUMP: | 410 | case MADV_DODUMP: |
411 | return 1; | 411 | return true; |
412 | 412 | ||
413 | default: | 413 | default: |
414 | return 0; | 414 | return false; |
415 | } | 415 | } |
416 | } | 416 | } |
417 | 417 | ||