]> git.baikalelectronics.ru Git - kernel.git/commit
staging: ion: simplify ion_page_pool_total()
authorHeesub Shin <heesub.shin@samsung.com>
Wed, 28 May 2014 06:52:53 +0000 (15:52 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 29 May 2014 20:40:33 +0000 (13:40 -0700)
commitec5fd340711ca82bb329a871e0130fbb5f3a1ba9
tree5496bee1c053a8312dd44985cf7d036a401c99ed
parentb4b8dd217357aad686d7c12c2c5fd8aeae7a6b57
staging: ion: simplify ion_page_pool_total()

ion_page_pool_total() returns the total number of pages in the pool.
Depending on the argument passed, it counts highmem pages in or not.
This commit simplifies the code lines for better readability.

Signed-off-by: Heesub Shin <heesub.shin@samsung.com>
Reviewed-by: Mitchel Humpherys <mitchelh@codeaurora.org>
Tested-by: John Stultz <john.stultz@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/android/ion/ion_page_pool.c