projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3453677
)
drm/amdgpu: simplify the return expression of navi10_ih_hw_init()
author
Minghao Chi
<chi.minghao@zte.com.cn>
Fri, 29 Apr 2022 05:50:37 +0000
(
05:50
+0000)
committer
Alex Deucher
<alexander.deucher@amd.com>
Wed, 4 May 2022 13:53:28 +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/navi10_ih.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/amd/amdgpu/navi10_ih.c
b/drivers/gpu/drm/amd/amdgpu/navi10_ih.c
index 97201ab0965e67916a3237086f0314367a075812..4b5396d3e60f668985b2487d4d946af7b1555af5 100644
(file)
--- a/
drivers/gpu/drm/amd/amdgpu/navi10_ih.c
+++ b/
drivers/gpu/drm/amd/amdgpu/navi10_ih.c
@@
-593,14
+593,9
@@
static int navi10_ih_sw_fini(void *handle)
static int navi10_ih_hw_init(void *handle)
{
- int r;
struct amdgpu_device *adev = (struct amdgpu_device *)handle;
- r = navi10_ih_irq_init(adev);
- if (r)
- return r;
-
- return 0;
+ return navi10_ih_irq_init(adev);
}
static int navi10_ih_hw_fini(void *handle)