mm:Change function return from int to bool for the function is_page_busy
Subsystems (2)
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.
Signed-off-by Nicholas Krause <[email protected]>
--- mm/dmapool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
mm/dmapool.c +1 -1
@@ -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>