projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2aefa9a
)
drm/amdgpu: Remove the unneeded result variable
author
ye xingchen
<ye.xingchen@zte.com.cn>
Fri, 26 Aug 2022 07:23:57 +0000
(07:23 +0000)
committer
Alex Deucher
<alexander.deucher@amd.com>
Mon, 29 Aug 2022 21:43:59 +0000
(17:43 -0400)
Return the value sdma_v5_2_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>
drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c
b/drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c
index 83c6ccaaa9e4e0c0130a71efa8130725efdc809d..95689ef4be102115c19166f168a680e7a42c4a1c 100644
(file)
--- a/
drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c
+++ b/
drivers/gpu/drm/amd/amdgpu/sdma_v5_2.c
@@
-1413,12
+1413,9
@@
static int sdma_v5_2_sw_fini(void *handle)
static int sdma_v5_2_hw_init(void *handle)
{
- int r;
struct amdgpu_device *adev = (struct amdgpu_device *)handle;
- r = sdma_v5_2_start(adev);
-
- return r;
+ return sdma_v5_2_start(adev);
}
static int sdma_v5_2_hw_fini(void *handle)