diff options
author | Yue Haibing <yuehaibing@huawei.com> | 2018-11-08 06:53:43 -0500 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2018-11-08 16:04:28 -0500 |
commit | 584738b7e359e856199ef7093bc1b28dabada054 (patch) | |
tree | 6f3f5d33215527f853349f55986df4936b1d7821 /drivers/gpu | |
parent | d2cfabbdafe09aa0b751302df9277663ff5a0270 (diff) |
drm/radeon: remove set but not used variable 'rdev'
Fixes gcc '-Wunused-but-set-variable' warning:
drivers/gpu/drm/radeon/radeon_object.c: In function 'radeon_bo_unref':
drivers/gpu/drm/radeon/radeon_object.c:317:24: warning:
variable 'rdev' set but not used [-Wunused-but-set-variable]
It not used any more after commit
e7e31600d3e2 ("drm/radeon: remove taking mclk_lock from radeon_bo_unref")
Signed-off-by: Yue Haibing <yuehaibing@huawei.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/radeon/radeon_object.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_object.c b/drivers/gpu/drm/radeon/radeon_object.c index 92f6d4002eea..833e909706a9 100644 --- a/drivers/gpu/drm/radeon/radeon_object.c +++ b/drivers/gpu/drm/radeon/radeon_object.c | |||
@@ -314,11 +314,9 @@ struct radeon_bo *radeon_bo_ref(struct radeon_bo *bo) | |||
314 | void radeon_bo_unref(struct radeon_bo **bo) | 314 | void radeon_bo_unref(struct radeon_bo **bo) |
315 | { | 315 | { |
316 | struct ttm_buffer_object *tbo; | 316 | struct ttm_buffer_object *tbo; |
317 | struct radeon_device *rdev; | ||
318 | 317 | ||
319 | if ((*bo) == NULL) | 318 | if ((*bo) == NULL) |
320 | return; | 319 | return; |
321 | rdev = (*bo)->rdev; | ||
322 | tbo = &((*bo)->tbo); | 320 | tbo = &((*bo)->tbo); |
323 | ttm_bo_put(tbo); | 321 | ttm_bo_put(tbo); |
324 | *bo = NULL; | 322 | *bo = NULL; |