drm/amd/display: Remove NO_EFFECT self-assignment
authorAlex Hung <alex.hung@amd.com>
Thu, 30 May 2024 18:05:48 +0000 (12:05 -0600)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 14 Jun 2024 20:18:25 +0000 (16:18 -0400)
[WHAT & HOW]
The self-assignments have no effects and thus are removed.

Reviewed-by: Rodrigo Siqueira <rodrigo.siqueira@amd.com>
Acked-by: Zaeem Mohamed <zaeem.mohamed@amd.com>
Signed-off-by: Alex Hung <alex.hung@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_dcn4_calcs.c
drivers/gpu/drm/amd/display/dc/dml2/dml21/src/dml2_core/dml2_core_shared.c

index 2b240a3..eceef0f 100644 (file)
@@ -8919,10 +8919,6 @@ static bool dml_core_mode_support(struct dml2_core_calcs_mode_support_ex *in_out
                        } // prefetch schedule
                }
 
-               for (k = 0; k < mode_lib->ms.num_active_planes; ++k) {
-                       mode_lib->ms.use_one_row_for_frame[k] = mode_lib->ms.use_one_row_for_frame[k];
-               }
-
                s->mSOCParameters.UrgentLatency = mode_lib->ms.UrgLatency;
                s->mSOCParameters.ExtraLatency = mode_lib->ms.ExtraLatency;
                s->mSOCParameters.ExtraLatency_sr = mode_lib->ms.ExtraLatency_sr;
index 6eb3fec..cfa4c44 100644 (file)
@@ -2647,10 +2647,6 @@ bool dml2_core_shared_mode_support(struct dml2_core_calcs_mode_support_ex *in_ou
                        } // prefetch schedule
                }
 
-               for (k = 0; k < mode_lib->ms.num_active_planes; ++k) {
-                       mode_lib->ms.use_one_row_for_frame[k] = mode_lib->ms.use_one_row_for_frame[k];
-               }
-
                s->mSOCParameters.UrgentLatency = mode_lib->ms.UrgLatency;
                s->mSOCParameters.ExtraLatency = mode_lib->ms.ExtraLatency;
                s->mSOCParameters.ExtraLatency_sr = mode_lib->ms.ExtraLatency_sr;