Re: [PATCH 1/2] drm/amdgpu/display: fix warning about indentation

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2021-09-14 10:59, Alex Deucher wrote:
> Looks like this code block was missing parens.
> 
> Fixes: c0ffd1945147 ("drm/amd/display: Add DPCD writes at key points")
> Cc: Leo (Hanghong) Ma <hanghong.ma@xxxxxxx>
> Cc: Mikita Lipski <mikita.lipski@xxxxxxx>
> Cc: Aric Cyr <aric.cyr@xxxxxxx>
> Signed-off-by: Alex Deucher <alexander.deucher@xxxxxxx>

Reviewed-by: Harry Wentland <harry.wentland@xxxxxxx>

Harry

> ---
>  drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c | 5 ++---
>  1 file changed, 2 insertions(+), 3 deletions(-)
> 
> diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c b/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c
> index ac4896ff912c..6663cfc4eb71 100644
> --- a/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c
> +++ b/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c
> @@ -2370,12 +2370,11 @@ bool perform_link_training_with_retries(
>  	/* We need to do this before the link training to ensure the idle pattern in SST
>  	 * mode will be sent right after the link training
>  	 */
> -#if defined(CONFIG_DRM_AMD_DC_DCN)
> -	if (dp_get_link_encoding_format(&current_setting) == DP_8b_10b_ENCODING)
> -#endif
> +	if (dp_get_link_encoding_format(&current_setting) == DP_8b_10b_ENCODING) {
>  		link_enc->funcs->connect_dig_be_to_fe(link_enc,
>  							pipe_ctx->stream_res.stream_enc->id, true);
>  		dp_source_sequence_trace(link, DPCD_SOURCE_SEQ_AFTER_CONNECT_DIG_FE_BE);
> +	}
>  
>  	for (j = 0; j < attempts; ++j) {
>  
> 




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux