drm/amdgpu/dm/mst: Fix uninitialized var in pre_compute_mst_dsc_configs_for_state()
Subsystems (3)
PATCH 1/1 drm/amdgpu/dm/mst: Fix uninitialized var in pre_compute_mst_dsc_configs_for_state()
Coverity noticed this one, so let's fix it.
Signed-off-by Lyude Paul <[email protected]>
--- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c +1 -1
@@ -1180,7 +1180,7 @@ static int pre_compute_mst_dsc_configs_for_state(struct drm_atomic_state *state,struct amdgpu_dm_connector *aconnector;struct drm_dp_mst_topology_mgr *mst_mgr;int link_vars_start_index =0 ; -int ret; +int ret =0 ;for (i =0 ; i < dc_state->stream_count; i++) computed_streams[i] = false;
Signature · 1 line
2.38.1
Quoted 3 lines · Lyude Paul
Coverity noticed this one, so let's fix it.
Signed-off-by Lyude Paul <[email protected]>
Reviewed-by Harry Wentland <[email protected]>
Harry
Quoted 17 lines
--- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c +1
-1@@ -1180,7 +1180,7 @@ static int pre_compute_mst_dsc_configs_for_state(struct drm_atomic_state *state,struct amdgpu_dm_connector *aconnector;struct drm_dp_mst_topology_mgr *mst_mgr;int link_vars_start_index =0 ; -int ret; +int ret =0 ;for (i =0 ; i < dc_state->stream_count; i++) computed_streams[i] = false;
Alex Deucher
AppliedApplied. Thanks!
Alex
Quoted 28 lines · Harry Wentland
Quoted 3 lines · Lyude Paul
Coverity noticed this one, so let's fix it.
Signed-off-by Lyude Paul <[email protected]>Reviewed-by Harry Wentland <[email protected]>Harry
Quoted 17 lines
--- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_mst_types.c +1
-1@@ -1180,7 +1180,7 @@ static int pre_compute_mst_dsc_configs_for_state(struct drm_atomic_state *state,struct amdgpu_dm_connector *aconnector;struct drm_dp_mst_topology_mgr *mst_mgr;int link_vars_start_index =0 ; -int ret; +int ret =0 ;for (i =0 ; i < dc_state->stream_count; i++) computed_streams[i] = false;