aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorye xingchen <ye.xingchen@zte.com.cn>2022-08-30 08:32:43 +0000
committerAlex Deucher <alexander.deucher@amd.com>2022-08-30 16:37:31 -0400
commit91a95887891f1ab791171f32de99e9d9ed34c888 (patch)
tree3915fee221fa0f64c8af42561deec4a7c1aea513
parentdrm/amdgpu: add new ip block for MES 11.0.3 (diff)
downloadwireguard-linux-91a95887891f1ab791171f32de99e9d9ed34c888.tar.xz
wireguard-linux-91a95887891f1ab791171f32de99e9d9ed34c888.zip
drm/amdgpu: Remove the unneeded result variable 'r'
Return the value sdma_v4_0_start() directly instead of storing it in another redundant variable. Reported-by: Zeal Robot <zealci@zte.com.cn> Signed-off-by: ye xingchen <ye.xingchen@zte.com.cn> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
-rw-r--r--drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c b/drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c
index 65181efba50e..0cf9d3b486b2 100644
--- a/drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c
+++ b/drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c
@@ -2002,7 +2002,6 @@ static int sdma_v4_0_sw_fini(void *handle)
static int sdma_v4_0_hw_init(void *handle)
{
- int r;
struct amdgpu_device *adev = (struct amdgpu_device *)handle;
if (adev->flags & AMD_IS_APU)
@@ -2011,9 +2010,7 @@ static int sdma_v4_0_hw_init(void *handle)
if (!amdgpu_sriov_vf(adev))
sdma_v4_0_init_golden_registers(adev);
- r = sdma_v4_0_start(adev);
-
- return r;
+ return sdma_v4_0_start(adev);
}
static int sdma_v4_0_hw_fini(void *handle)