projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2929a6b
)
drm/amdgpu: simplify the return expression of iceland_ih_hw_init
author
Minghao Chi
<chi.minghao@zte.com.cn>
Fri, 29 Apr 2022 05:48:41 +0000
(
05:48
+0000)
committer
Alex Deucher
<alexander.deucher@amd.com>
Wed, 4 May 2022 13:53:18 +0000
(09:53 -0400)
Simplify the return expression.
Reported-by: Zeal Robot <zealci@zte.com.cn>
Signed-off-by: Minghao Chi <chi.minghao@zte.com.cn>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/iceland_ih.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/amd/amdgpu/iceland_ih.c
b/drivers/gpu/drm/amd/amdgpu/iceland_ih.c
index ddfe4eaeea05ec40b0045867c52302590be11038..aecad530b10a61289f9e2413612bbf58a33cec22 100644
(file)
--- a/
drivers/gpu/drm/amd/amdgpu/iceland_ih.c
+++ b/
drivers/gpu/drm/amd/amdgpu/iceland_ih.c
@@
-308,14
+308,9
@@
static int iceland_ih_sw_fini(void *handle)
static int iceland_ih_hw_init(void *handle)
{
- int r;
struct amdgpu_device *adev = (struct amdgpu_device *)handle;
- r = iceland_ih_irq_init(adev);
- if (r)
- return r;
-
- return 0;
+ return iceland_ih_irq_init(adev);
}
static int iceland_ih_hw_fini(void *handle)