Re: [PATCH] drm/amdgpu/display: remove statement with no effect

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

 



On 2022-01-31 16:53, Alex Deucher wrote:
> drivers/gpu/drm/amd/amdgpu/../display/dc/dcn10/dcn10_link_encoder.c: In function ‘dcn10_link_encoder_dp_set_lane_settings’:
> drivers/gpu/drm/amd/amdgpu/../display/dc/dcn10/dcn10_link_encoder.c:1123:49: warning: statement with no effect [-Wunused-value]
>  1123 |                                                 LINK_RATE_REF_FREQ_IN_KHZ;
>       |                                                 ^~~~~~~~~~~~~~~~~~~~~~~~~
> 
> Fixes: f2581998d9eb5e ("drm/amd/display: add set dp lane settings to link_hwss")
> Signed-off-by: Alex Deucher <alexander.deucher@xxxxxxx>

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

Harry

> ---
>  drivers/gpu/drm/amd/display/dc/dcn10/dcn10_link_encoder.c | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_link_encoder.c b/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_link_encoder.c
> index 779110a2d948..ca39361f71c8 100644
> --- a/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_link_encoder.c
> +++ b/drivers/gpu/drm/amd/display/dc/dcn10/dcn10_link_encoder.c
> @@ -1120,7 +1120,6 @@ void dcn10_link_encoder_dp_set_lane_settings(
>  	cntl.lanes_number = link_settings->lane_count;
>  	cntl.hpd_sel = enc10->base.hpd_source;
>  	cntl.pixel_clock = link_settings->link_rate * LINK_RATE_REF_FREQ_IN_KHZ;
> -						LINK_RATE_REF_FREQ_IN_KHZ;
>  
>  	for (lane = 0; lane < link_settings->lane_count; lane++) {
>  		/* translate lane settings */




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

  Powered by Linux