summaryrefslogtreecommitdiffstats
path: root/mm/madvise.c
diff options
context:
space:
mode:
authorNicholas Krause <xerofoify@gmail.com>2015-09-04 15:48:24 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2015-09-04 16:54:41 -0700
commit1ecef9ed0f63bfff58895a4f3aec751e907c7f3d (patch)
treeff4d12fc524d1701747946ee3a87d8dc4b453dd0 /mm/madvise.c
parentca1d6c7d9d461effa2c4e8b9b227a14e9fdcf1cc (diff)
downloadop-kernel-dev-1ecef9ed0f63bfff58895a4f3aec751e907c7f3d.zip
op-kernel-dev-1ecef9ed0f63bfff58895a4f3aec751e907c7f3d.tar.gz
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.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mm/madvise.c b/mm/madvise.c
index 9113579..ce3a422 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,
}
}
-static int
+static bool
madvise_behavior_valid(int behavior)
{
switch (behavior) {
@@ -408,10 +408,10 @@ madvise_behavior_valid(int behavior)
#endif
case MADV_DONTDUMP:
case MADV_DODUMP:
- return 1;
+ return true;
default:
- return 0;
+ return false;
}
}
OpenPOWER on IntegriCloud