diff options
author | Thomas Zimmermann <contact@tzimmermann.org> | 2018-06-21 15:21:37 +0200 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2018-07-10 21:18:28 +0200 |
commit | f44907593d746d42821543992b7c7085d2cbeafb (patch) | |
tree | 14ce7d966496012ee863c8f00a7ad3ecda6503b1 /drivers/gpu/drm/ttm/ttm_bo.c | |
parent | drm/ttm: Replace ttm_bo_reference() with ttm_bo_get() (diff) | |
download | linux-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.c | 2 |
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; } |