summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c
diff options
context:
space:
mode:
authorSu Hui <suhui@nfschina.com>2023-05-15 03:34:28 +0200
committerAlex Deucher <alexander.deucher@amd.com>2023-06-09 16:40:12 +0200
commit109b4d8cfe4279da1cbcbcd99ae54cb2b2aee521 (patch)
treeec8626578c10c4af2de1841854cdf7753a0c3004 /drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c
parentdrm/amd: Update driver-misc.html for Dragon Range (diff)
downloadlinux-109b4d8cfe4279da1cbcbcd99ae54cb2b2aee521.tar.xz
linux-109b4d8cfe4279da1cbcbcd99ae54cb2b2aee521.zip
drm/amdgpu: remove unnecessary (void*) conversions
No need cast (void*) to (struct amdgpu_device *). Signed-off-by: Su Hui <suhui@nfschina.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c
index 815098be4c2f..41d047e5de69 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c
@@ -1468,7 +1468,7 @@ void amdgpu_disable_vblank_kms(struct drm_crtc *crtc)
static int amdgpu_debugfs_firmware_info_show(struct seq_file *m, void *unused)
{
- struct amdgpu_device *adev = (struct amdgpu_device *)m->private;
+ struct amdgpu_device *adev = m->private;
struct drm_amdgpu_info_firmware fw_info;
struct drm_amdgpu_query_fw query_fw;
struct atom_context *ctx = adev->mode_info.atom_context;