projects
/
GitHub
/
MotorolaMobilityLLC
/
kernel-slsi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aef1ba5
)
drm/amdgpu: Remove redundant itermediate return val in sdma_v4_0.c
author
Rex Zhu
<Rex.Zhu@amd.com>
Mon, 17 Apr 2017 10:46:57 +0000
(18:46 +0800)
committer
Alex Deucher
<alexander.deucher@amd.com>
Fri, 28 Apr 2017 21:32:38 +0000
(17:32 -0400)
Signed-off-by: Rex Zhu <Rex.Zhu@amd.com>
Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c
b/drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c
index bc8313b5be0be92398a09e88cfb64199412199b8..91947753946a35e97fe1a684511c8500b70cd4e9 100644
(file)
--- a/
drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c
+++ b/
drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c
@@
-744,10
+744,8
@@
static int sdma_v4_0_start(struct amdgpu_device *adev)
if (r)
return r;
r = sdma_v4_0_rlc_resume(adev);
- if (r)
- return r;
- return
0
;
+ return
r
;
}
/**
@@
-1158,8
+1156,6
@@
static int sdma_v4_0_hw_init(void *handle)
sdma_v4_0_init_golden_registers(adev);
r = sdma_v4_0_start(adev);
- if (r)
- return r;
return r;
}