projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d424221
)
drm/amdgpu: Remove the unneeded result variable
author
zhang songyi
<zhang.songyi@zte.com.cn>
Fri, 2 Sep 2022 08:04:01 +0000
(08:04 +0000)
committer
Alex Deucher
<alexander.deucher@amd.com>
Tue, 13 Sep 2022 18:32:58 +0000
(14:32 -0400)
Return the sdma_v6_0_start() directly instead of storing it in another
redundant variable.
Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: zhang songyi <zhang.songyi@zte.com.cn>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/sdma_v6_0.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/amd/amdgpu/sdma_v6_0.c
b/drivers/gpu/drm/amd/amdgpu/sdma_v6_0.c
index 7ae572a08cb37e9b28860d3fce374848571c4904..3a0b14be1a57c11210fe200603e92e126d9bf750 100644
(file)
--- a/
drivers/gpu/drm/amd/amdgpu/sdma_v6_0.c
+++ b/
drivers/gpu/drm/amd/amdgpu/sdma_v6_0.c
@@
-1377,12
+1377,9
@@
static int sdma_v6_0_sw_fini(void *handle)
static int sdma_v6_0_hw_init(void *handle)
{
- int r;
struct amdgpu_device *adev = (struct amdgpu_device *)handle;
- r = sdma_v6_0_start(adev);
-
- return r;
+ return sdma_v6_0_start(adev);
}
static int sdma_v6_0_hw_fini(void *handle)