Commit 44b582b3 authored by Geert Uytterhoeven's avatar Geert Uytterhoeven Committed by Alex Deucher

drm/amdgpu: Remove superfluous void * cast in debugfs_create_file() call

There is no need to cast a typed pointer to a void pointer when calling
a function that accepts the latter.  Remove it, as the cast prevents
further compiler checks.
Signed-off-by: default avatarGeert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent e4b116a2
...@@ -1089,8 +1089,8 @@ int amdgpu_debugfs_init(struct amdgpu_device *adev) ...@@ -1089,8 +1089,8 @@ int amdgpu_debugfs_init(struct amdgpu_device *adev)
{ {
adev->debugfs_preempt = adev->debugfs_preempt =
debugfs_create_file("amdgpu_preempt_ib", 0600, debugfs_create_file("amdgpu_preempt_ib", 0600,
adev->ddev->primary->debugfs_root, adev->ddev->primary->debugfs_root, adev,
(void *)adev, &fops_ib_preempt); &fops_ib_preempt);
if (!(adev->debugfs_preempt)) { if (!(adev->debugfs_preempt)) {
DRM_ERROR("unable to create amdgpu_preempt_ib debugsfs file\n"); DRM_ERROR("unable to create amdgpu_preempt_ib debugsfs file\n");
return -EIO; return -EIO;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment