From: Nicholas Krause Date: Fri, 4 Sep 2015 22:48:24 +0000 (-0700) Subject: mm/madvise.c: make madvise_behaviour_valid() return bool X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1ecef9ed0f63bfff58895a4f3aec751e907c7f3d;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- 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, } } -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; } }