From: Yisheng Xie Date: Mon, 12 Feb 2018 10:43:12 +0000 (+0800) Subject: staging: android: ion: Return void instead of int X-Git-Tag: v4.17-rc1~124^2~435 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=70ea629b7257b32135e3c9ef9591f239c16be746;p=linux.git staging: android: ion: Return void instead of int Now, nobody care about the return value of ion_page_pool_add, therefore we can just make it return void. Acked-by: Laura Abbott Signed-off-by: Yisheng Xie Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/android/ion/ion_page_pool.c b/drivers/staging/android/ion/ion_page_pool.c index 150626ffc24a..e3a6e327ec0a 100644 --- a/drivers/staging/android/ion/ion_page_pool.c +++ b/drivers/staging/android/ion/ion_page_pool.c @@ -26,7 +26,7 @@ static void ion_page_pool_free_pages(struct ion_page_pool *pool, __free_pages(page, pool->order); } -static int ion_page_pool_add(struct ion_page_pool *pool, struct page *page) +static void ion_page_pool_add(struct ion_page_pool *pool, struct page *page) { mutex_lock(&pool->mutex); if (PageHighMem(page)) { @@ -37,7 +37,6 @@ static int ion_page_pool_add(struct ion_page_pool *pool, struct page *page) pool->low_count++; } mutex_unlock(&pool->mutex); - return 0; } static struct page *ion_page_pool_remove(struct ion_page_pool *pool, bool high)