OSDN Git Service

drm/ttm: Replace ttm_bo_unref() with ttm_bo_put()
authorThomas Zimmermann <contact@tzimmermann.org>
Thu, 21 Jun 2018 13:21:37 +0000 (15:21 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 10 Jul 2018 19:18:28 +0000 (14:18 -0500)
commitf44907593d746d42821543992b7c7085d2cbeafb
tree14ce7d966496012ee863c8f00a7ad3ecda6503b1
parent8129fdad387ae3cf6373d74a6afb5372bf773cbd
drm/ttm: Replace ttm_bo_unref() with ttm_bo_put()

A call to ttm_bo_unref() clears the supplied pointer to NULL, while
ttm_bo_put() does not. None of the converted call sites requires the
pointer to become NULL, so the respective assign operations has been
left out from the patch.

Signed-off-by: Thomas Zimmermann <contact@tzimmermann.org>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/ttm/ttm_bo.c
drivers/gpu/drm/ttm/ttm_bo_util.c
drivers/gpu/drm/ttm/ttm_bo_vm.c