]> git.baikalelectronics.ru Git - kernel.git/commit
drm/prime: Use unsigned type for number of pages
authorThierry Reding <treding@nvidia.com>
Wed, 4 Jun 2014 07:18:29 +0000 (09:18 +0200)
committerThierry Reding <treding@nvidia.com>
Thu, 13 Nov 2014 09:43:50 +0000 (10:43 +0100)
commit54985409f8a719409f34381cd8d3fa221d467fab
tree6200729d3999d2bef4c952974c4b02499fc82f5f
parentbea5c10a0d8a8567de83b486cf67f684dfb80126
drm/prime: Use unsigned type for number of pages

The number of pages can never be negative, so an unsigned type is
enough. This also matches the type of the n_pages argument of the
sg_alloc_table_from_pages() function.

Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/drm/drm_prime.c
include/drm/drmP.h