linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] mm:Make the function madvise_behaviour_valid bool
@ 2015-06-26 13:51 Nicholas Krause
  0 siblings, 0 replies; only message in thread
From: Nicholas Krause @ 2015-06-26 13:51 UTC (permalink / raw)
  To: akpm
  Cc: jack, kirill.shutemov, axboe, tj, Anna.Schumaker, hch, shhuiw,
	matthew.r.wilcox, linux-mm, linux-kernel

This makes the function madvise_bahaviour_valid bool now 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>
---
 mm/madvise.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/mm/madvise.c b/mm/madvise.c
index 64bb8a2..069e22d 100644
--- a/mm/madvise.c
+++ b/mm/madvise.c
@@ -385,7 +385,7 @@ madvise_vma(struct vm_area_struct *vma, struct vm_area_struct **prev,
 	}
 }
 
-static int
+static bool
 madvise_behavior_valid(int behavior)
 {
 	switch (behavior) {
@@ -407,10 +407,10 @@ madvise_behavior_valid(int behavior)
 #endif
 	case MADV_DONTDUMP:
 	case MADV_DODUMP:
-		return 1;
+		return true;
 
 	default:
-		return 0;
+		return false;
 	}
 }
 
-- 
2.1.4

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2015-06-26 13:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-26 13:51 [PATCH] mm:Make the function madvise_behaviour_valid bool Nicholas Krause

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).