From: Nicholas Krause Date: Fri, 4 Sep 2015 22:48:19 +0000 (-0700) Subject: mm/dmapool.c: change is_page_busy() return from int to bool X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d9e7e37b4d83371d08650612e0bb0b80a1240289;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git mm/dmapool.c: change is_page_busy() return from int to bool This makes the function is_page_busy() 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 Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/mm/dmapool.c b/mm/dmapool.c index fd5fe4342e93..59d10d16f0a5 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; }