Skip to contentSkip to conversation

mm:Change function return from int to bool for the function is_page_busy

PATCH New Nicholas Krause 1 participant 1 message Jun 26, 2015

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mm:Change function return from int to bool for the function is_page_busy

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.

---
 mm/dmapool.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
mm/dmapool.c +1 -1
index fd5fe43..59d10d1 100644
@@ -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;
 }
Signature · 7 lines
2.1.4

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