staging: android: ion: Cleanup ion_page_pool_alloc_pages
authorYisheng Xie <xieyisheng1@huawei.com>
Mon, 12 Feb 2018 10:43:13 +0000 (18:43 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 16 Feb 2018 16:29:07 +0000 (17:29 +0100)
commitacb42f8e89efcf116aa56f4be31776d809e8aa79
tree668dccf2ba2f6d01f8c22518d51e26f673dc63c6
parent70ea629b7257b32135e3c9ef9591f239c16be746
staging: android: ion: Cleanup ion_page_pool_alloc_pages

ion_page_pool_alloc_pages calls alloc_pages to allocate pages for page
pools. If alloc_pages return NULL, it will return NULL, or it will
return the pages allocate from alloc_pages. So we can just return
alloc_pages without any judgement.

Acked-by: Sumit Semwal <sumit.semwal@linaro.org>
Signed-off-by: Yisheng Xie <xieyisheng1@huawei.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/android/ion/ion_page_pool.c