mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
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 <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
4e6dab4233
commit
d9e7e37b4d
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue