drm/etnaviv: Clean up etnaviv_gem_get_pages
authorSui Jingfeng <suijingfeng@loongson.cn>
Mon, 2 Oct 2023 11:12:07 +0000 (19:12 +0800)
committerLucas Stach <l.stach@pengutronix.de>
Tue, 23 Jan 2024 09:20:20 +0000 (10:20 +0100)
commite8491f0238625b156e2d82c49fd8c838352b7e74
tree51610dc89ffdae668d2eb17aa7193a6337566904
parentf5cc0cbc2796627d8b9c561a8e135fe34615b654
drm/etnaviv: Clean up etnaviv_gem_get_pages

As in the etnaviv_gem_get_pages() function, the point to the drm_device
has already been cached to the 'dev' local variable. We can use it
directly, While at it, using 'unsigned int' type to count the number of
pages. As the drm_prime_pages_to_sg() function takes an unsigned int type
for its third argument. No functional change.

Signed-off-by: Sui Jingfeng <suijingfeng@loongson.cn>
[lst: Reword subject to make more generic and match patch content]
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
drivers/gpu/drm/etnaviv/etnaviv_gem.c