summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/gfx_v9_4_2.c
diff options
context:
space:
mode:
authorSrinivasan Shanmugam <srinivasan.shanmugam@amd.com>2023-09-30 08:11:31 +0530
committerAlex Deucher <alexander.deucher@amd.com>2023-10-05 17:59:35 -0400
commite0a3e7bf62dfbf6a1730f244b2adf53fac07003b (patch)
treeb975de147fcaba4b1525738ab72edeb92a8a3f02 /drivers/gpu/drm/amd/amdgpu/gfx_v9_4_2.c
parent4798db85b76a0e2bebe8bb51251c2688b1e8ab93 (diff)
downloadlinux-e0a3e7bf62dfbf6a1730f244b2adf53fac07003b.tar.gz
linux-e0a3e7bf62dfbf6a1730f244b2adf53fac07003b.tar.bz2
linux-e0a3e7bf62dfbf6a1730f244b2adf53fac07003b.zip
drm/amdgpu: Drop unnecessary return statements
There is no reason to call return at the end of function that returns void. Fixes the below: WARNING: void function return statements are not generally useful Thus remove such a statement in the affected functions. Cc: Christian König <christian.koenig@amd.com> Cc: Alex Deucher <alexander.deucher@amd.com> Cc: "Pan, Xinhui" <Xinhui.Pan@amd.com> Signed-off-by: Srinivasan Shanmugam <srinivasan.shanmugam@amd.com> Reviewed-by: Christian König <christian.koenig@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/gfx_v9_4_2.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/gfx_v9_4_2.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v9_4_2.c b/drivers/gpu/drm/amd/amdgpu/gfx_v9_4_2.c
index e7ae37233234..065b2bd5f5a6 100644
--- a/drivers/gpu/drm/amd/amdgpu/gfx_v9_4_2.c
+++ b/drivers/gpu/drm/amd/amdgpu/gfx_v9_4_2.c
@@ -746,8 +746,6 @@ void gfx_v9_4_2_init_golden_registers(struct amdgpu_device *adev,
die_id);
break;
}
-
- return;
}
void gfx_v9_4_2_debug_trap_config_init(struct amdgpu_device *adev,