projects
/
platform
/
kernel
/
linux-rpi.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
|
history
diff --git
a/drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c
b/drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c
index
bc8313b
..
9194775
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;
}