staging: android: ion: Remove dead code in ion_page_pool_free
authorYisheng Xie <xieyisheng1@huawei.com>
Mon, 12 Feb 2018 10:43:11 +0000 (18:43 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 16 Feb 2018 16:29:07 +0000 (17:29 +0100)
commita3f75c43594ccfe6de8994c69ccf17aabb6f8114
tree5013e91987c2543443a524d1d4a0e1d1e444e142
parentfa04df23f5121dc710aabc8e78486f3c10939c69
staging: android: ion: Remove dead code in ion_page_pool_free

ion_page_pool_add will always return 0, however ion_page_pool_free will
call ion_page_pool_free_pages when ion_page_pool_add's return value is
not 0, so it is a dead code which can be removed.

Acked-by: Laura Abbott <labbott@redhat.com>
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