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:
803a141
)
drm/amd/amdgpu: sdma_v4_0_start: initialize r
author
Ernst Sjöstrand
<ernstp@gmail.com>
Mon, 24 Jun 2019 15:15:44 +0000
(17:15 +0200)
committer
Alex Deucher
<alexander.deucher@amd.com>
Tue, 25 Jun 2019 18:23:48 +0000
(13:23 -0500)
Reported by smatch:
drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c:1167 sdma_v4_0_start() error: uninitialized symbol 'r'.
Signed-off-by: Ernst Sjöstrand <ernstp@gmail.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 e390ad2bac4119089db609040eaf13c6d51dca8a..4428018672d3c7d977ae84542f23dc2ae9203f93 100644
(file)
--- a/
drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c
+++ b/
drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c
@@
-1095,7
+1095,7
@@
static int sdma_v4_0_load_microcode(struct amdgpu_device *adev)
static int sdma_v4_0_start(struct amdgpu_device *adev)
{
struct amdgpu_ring *ring;
- int i, r;
+ int i, r
= 0
;
if (amdgpu_sriov_vf(adev)) {
sdma_v4_0_ctx_switch_enable(adev, false);