diff options
author | Su Hui <suhui@nfschina.com> | 2023-05-17 04:52:19 +0200 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2023-06-09 16:40:55 +0200 |
commit | 6091ede913015fd3c07cb16298505bbd71f41689 (patch) | |
tree | 7f54e100bc9bc8e8bc2a8f2be8568893299458ad /drivers/gpu/drm/radeon/r300.c | |
parent | drm:amd:amdgpu: Fix missing buffer object unlock in failure path (diff) | |
download | linux-6091ede913015fd3c07cb16298505bbd71f41689.tar.xz linux-6091ede913015fd3c07cb16298505bbd71f41689.zip |
drm/radeon: Remove unnecessary (void*) conversions
No need cast (void*) to (struct radeon_device *)
or (struct radeon_ring *).
Signed-off-by: Su Hui <suhui@nfschina.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/radeon/r300.c')
-rw-r--r-- | drivers/gpu/drm/radeon/r300.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/radeon/r300.c b/drivers/gpu/drm/radeon/r300.c index 7b0cfeaddcec..9c1a92fa2af6 100644 --- a/drivers/gpu/drm/radeon/r300.c +++ b/drivers/gpu/drm/radeon/r300.c @@ -589,7 +589,7 @@ int rv370_get_pcie_lanes(struct radeon_device *rdev) #if defined(CONFIG_DEBUG_FS) static int rv370_debugfs_pcie_gart_info_show(struct seq_file *m, void *unused) { - struct radeon_device *rdev = (struct radeon_device *)m->private; + struct radeon_device *rdev = m->private; uint32_t tmp; tmp = RREG32_PCIE(RADEON_PCIE_TX_GART_CNTL); |