projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a3f75c4
)
staging: android: ion: Return void instead of int
author
Yisheng Xie
<
[email protected]
>
Mon, 12 Feb 2018 10:43:12 +0000
(18:43 +0800)
committer
Greg Kroah-Hartman
<
[email protected]
>
Fri, 16 Feb 2018 16:29:07 +0000
(17:29 +0100)
Now, nobody care about the return value of ion_page_pool_add, therefore
we can just make it return void.
Acked-by: Laura Abbott <
[email protected]
>
Signed-off-by: Yisheng Xie <
[email protected]
>
Signed-off-by: Greg Kroah-Hartman <
[email protected]
>
drivers/staging/android/ion/ion_page_pool.c
patch
|
blob
|
history
diff --git
a/drivers/staging/android/ion/ion_page_pool.c
b/drivers/staging/android/ion/ion_page_pool.c
index 150626ffc24aa8de1977182ac8fd9a6f3824b299..e3a6e327ec0a8473fad31231408ce49bce8cd992 100644
(file)
--- 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)