drm/amd/display: remove extraneous ; after statements
authorColin Ian King <colin.i.king@gmail.com>
Fri, 2 Aug 2024 11:42:52 +0000 (12:42 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 13 Aug 2024 14:26:44 +0000 (10:26 -0400)
There are a several statements with two following semicolons, replace
these with just one semicolon.

Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dml2/dml21/dml21_translation_helper.c
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
drivers/gpu/drm/amd/display/dc/dml2/dml2_utils.c

index 006667a..710a25d 100644 (file)
@@ -1031,7 +1031,7 @@ void dml21_copy_clocks_to_dc_state(struct dml2_context *in_ctx, struct dc_state
 void dml21_extract_legacy_watermark_set(const struct dc *in_dc, struct dcn_watermarks *watermark, enum dml2_dchub_watermark_reg_set_index reg_set_idx, struct dml2_context *in_ctx)
 {
        struct dml2_core_internal_display_mode_lib *mode_lib = &in_ctx->v21.dml_init.dml2_instance->core_instance.clean_me_up.mode_lib;
-       double refclk_freq_in_mhz = (in_ctx->v21.display_config.overrides.hw.dlg_ref_clk_mhz > 0) ? (double)in_ctx->v21.display_config.overrides.hw.dlg_ref_clk_mhz : mode_lib->soc.dchub_refclk_mhz;;
+       double refclk_freq_in_mhz = (in_ctx->v21.display_config.overrides.hw.dlg_ref_clk_mhz > 0) ? (double)in_ctx->v21.display_config.overrides.hw.dlg_ref_clk_mhz : mode_lib->soc.dchub_refclk_mhz;
 
        if (reg_set_idx >= DML2_DCHUB_WATERMARK_SET_NUM) {
                /* invalid register set index */
index cbecdc9..c3c4d8d 100644 (file)
@@ -7218,7 +7218,7 @@ static bool dml_core_mode_support(struct dml2_core_calcs_mode_support_ex *in_out
 #if defined(DV_BUILD)
                // Assume a memory config setting of 3 in 420 mode or get a new ip parameter that reflects the programming.
                if (mode_lib->ms.BytePerPixelC[k] != 0.0 && display_cfg->plane_descriptors[k].pixel_format != dml2_rgbe_alpha) {
-                       lb_buffer_size_bits_luma = 34620 * 57;;
+                       lb_buffer_size_bits_luma = 34620 * 57;
                        lb_buffer_size_bits_chroma = 13560 * 57;
                }
 #endif
index c54c297..8f3c1c0 100644 (file)
@@ -6464,8 +6464,8 @@ static void CalculateSwathAndDETConfiguration(struct dml2_core_internal_scratch
                        p->SwathHeightC[k] = l->MaximumSwathHeightC[k] / 2;
                        l->RoundedUpSwathSizeBytesY[k] = p->full_swath_bytes_l[k] / 2;
                        l->RoundedUpSwathSizeBytesC[k] = p->full_swath_bytes_c[k] / 2;
-                       p->request_size_bytes_luma[k] = ((p->BytePerPixY[k] == 2) == dml_is_vertical_rotation(p->display_cfg->plane_descriptors[k].composition.rotation_angle)) ? 128 : 64;;
-                       p->request_size_bytes_chroma[k] = ((p->BytePerPixC[k] == 2) == dml_is_vertical_rotation(p->display_cfg->plane_descriptors[k].composition.rotation_angle)) ? 128 : 64;;
+                       p->request_size_bytes_luma[k] = ((p->BytePerPixY[k] == 2) == dml_is_vertical_rotation(p->display_cfg->plane_descriptors[k].composition.rotation_angle)) ? 128 : 64;
+                       p->request_size_bytes_chroma[k] = ((p->BytePerPixC[k] == 2) == dml_is_vertical_rotation(p->display_cfg->plane_descriptors[k].composition.rotation_angle)) ? 128 : 64;
                }
 
                if (p->SwathHeightC[k] == 0)
index 7655501..9e8ff3a 100644 (file)
@@ -421,7 +421,7 @@ unsigned int dml2_calc_max_scaled_time(
 
 void dml2_extract_writeback_wm(struct dc_state *context, struct display_mode_lib_st *dml_core_ctx)
 {
-       int i, j = 0;;
+       int i, j = 0;
        struct mcif_arb_params *wb_arb_params = NULL;
        struct dcn_bw_writeback *bw_writeback = NULL;
        enum mmhubbub_wbif_mode wbif_mode = PACKED_444_FP16; /*for now*/