aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVictor Zhao <[email protected]>2021-04-27 17:52:56 +0800
committerAlex Deucher <[email protected]>2021-05-10 18:06:42 -0400
commitdb7f1e0140e83be6cb4179fc28074cd3c4f1225f (patch)
treea06e21ff74dc7d0e2eb2413c8e494e52a9d5a8bd
parent0e0036c7d13b945260ff1ce8377eca7ea877c008 (diff)
drm/amdgpu: fix r initial values
Sriov gets suspend of IP block <dce_virtual> failed as return value was not initialized. v2: return 0 directly to align original code semantic before this was broken out into a separate helper function instead of setting initial values Signed-off-by: Victor Zhao <[email protected]> Reviewed-by: Alex Deucher <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_display.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_display.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_display.c
index 2e622c1675d7..d3ae674b432b 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_display.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_display.c
@@ -1412,7 +1412,7 @@ int amdgpu_display_suspend_helper(struct amdgpu_device *adev)
}
}
}
- return r;
+ return 0;
}
int amdgpu_display_resume_helper(struct amdgpu_device *adev)