summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2020-05-12 15:48:06 +0300
committerAlex Deucher <alexander.deucher@amd.com>2020-05-14 23:42:45 +0300
commit29c1ec244ca1c2acfe6a8918967d678e104705c2 (patch)
treef14e30c586eeb8e0ef342f4becbd1418dc482aad /drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c
parent72d99b395f6c1b924f91e7964de231fb78e47c93 (diff)
downloadlinux-29c1ec244ca1c2acfe6a8918967d678e104705c2.tar.xz
drm/amdgpu: remove redundant assignment to variable ret
The variable ret is being initializeed with a value that is never read and it is being updated later with a new value. The initialization is redundant and can be removed. Addresses-Coverity: ("Unused value") Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c
index 90610b4f2c75..e9e59bc68c9f 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_xgmi.c
@@ -441,7 +441,7 @@ out:
int amdgpu_xgmi_update_topology(struct amdgpu_hive_info *hive, struct amdgpu_device *adev)
{
- int ret = -EINVAL;
+ int ret;
/* Each psp need to set the latest topology */
ret = psp_xgmi_set_topology_info(&adev->psp,