diff options
author | Srinivasan Shanmugam <srinivasan.shanmugam@amd.com> | 2023-09-30 05:41:31 +0300 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2023-10-06 00:59:35 +0300 |
commit | e0a3e7bf62dfbf6a1730f244b2adf53fac07003b (patch) | |
tree | b975de147fcaba4b1525738ab72edeb92a8a3f02 /drivers/gpu/drm/amd/amdgpu/soc21.c | |
parent | 4798db85b76a0e2bebe8bb51251c2688b1e8ab93 (diff) | |
download | linux-e0a3e7bf62dfbf6a1730f244b2adf53fac07003b.tar.xz |
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/soc21.c')
-rw-r--r-- | drivers/gpu/drm/amd/amdgpu/soc21.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/soc21.c b/drivers/gpu/drm/amd/amdgpu/soc21.c index 92a80780ab72..6fcc4f7be117 100644 --- a/drivers/gpu/drm/amd/amdgpu/soc21.c +++ b/drivers/gpu/drm/amd/amdgpu/soc21.c @@ -885,8 +885,6 @@ static void soc21_common_get_clockgating_state(void *handle, u64 *flags) adev->nbio.funcs->get_clockgating_state(adev, flags); adev->hdp.funcs->get_clock_gating_state(adev, flags); - - return; } static const struct amd_ip_funcs soc21_common_ip_funcs = { |