* [PATCH] mm:Change function return from int to bool for the function is_page_busy
@ 2015-06-26  1:46 Nicholas Krause
  0 siblings, 0 replies; only message in thread
From: Nicholas Krause @ 2015-06-26  1:46 UTC (permalink / raw)
  To: akpm; +Cc: bigeasy, paulmcquad, khalasa, linux-mm, linux-kernel
This makes the function is_page_busy's return bool rather then
an int now due to this particular function's single return
statement only ever evaulating to either one or zero.
Signed-off-by: Nicholas Krause <xerofoify@gmail.com>
---
 mm/dmapool.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mm/dmapool.c b/mm/dmapool.c
index fd5fe43..59d10d1 100644
--- a/mm/dmapool.c
+++ b/mm/dmapool.c
@@ -242,7 +242,7 @@ static struct dma_page *pool_alloc_page(struct dma_pool *pool, gfp_t mem_flags)
 	return page;
 }
 
-static inline int is_page_busy(struct dma_page *page)
+static inline bool is_page_busy(struct dma_page *page)
 {
 	return page->in_use != 0;
 }
-- 
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  1:46 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-26  1:46 [PATCH] mm:Change function return from int to bool for the function is_page_busy 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).