summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/ttm/ttm_bo.c
diff options
context:
space:
mode:
authorThomas Zimmermann <contact@tzimmermann.org>2018-06-21 15:21:37 +0200
committerAlex Deucher <alexander.deucher@amd.com>2018-07-10 21:18:28 +0200
commitf44907593d746d42821543992b7c7085d2cbeafb (patch)
tree14ce7d966496012ee863c8f00a7ad3ecda6503b1 /drivers/gpu/drm/ttm/ttm_bo.c
parentdrm/ttm: Replace ttm_bo_reference() with ttm_bo_get() (diff)
downloadlinux-f44907593d746d42821543992b7c7085d2cbeafb.tar.xz
linux-f44907593d746d42821543992b7c7085d2cbeafb.zip
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>
Diffstat (limited to 'drivers/gpu/drm/ttm/ttm_bo.c')
-rw-r--r--drivers/gpu/drm/ttm/ttm_bo.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/ttm/ttm_bo.c b/drivers/gpu/drm/ttm/ttm_bo.c
index 183e67c4197a..7c484729f9b2 100644
--- a/drivers/gpu/drm/ttm/ttm_bo.c
+++ b/drivers/gpu/drm/ttm/ttm_bo.c
@@ -1204,7 +1204,7 @@ int ttm_bo_init_reserved(struct ttm_bo_device *bdev,
if (!resv)
ttm_bo_unreserve(bo);
- ttm_bo_unref(&bo);
+ ttm_bo_put(bo);
return ret;
}