[PATCH] drm/amdgpu/dc: remove unused variables in dcn31_dio_link_encoder.c

Harry Wentland harry.wentland at amd.com
Fri Jun 4 20:10:09 UTC 2021


On 2021-06-04 4:07 p.m., Alex Deucher wrote:
> Unused so remove them.
> 
> Signed-off-by: Alex Deucher <alexander.deucher at amd.com>

Reviewed-by: Harry Wentland <harry.wentland at amd.com>

Harry

> ---
>  .../gpu/drm/amd/display/dc/dcn31/dcn31_dio_link_encoder.c   | 6 ------
>  1 file changed, 6 deletions(-)
> 
> diff --git a/drivers/gpu/drm/amd/display/dc/dcn31/dcn31_dio_link_encoder.c b/drivers/gpu/drm/amd/display/dc/dcn31/dcn31_dio_link_encoder.c
> index b281a4ad152a..90127c1f9e35 100644
> --- a/drivers/gpu/drm/amd/display/dc/dcn31/dcn31_dio_link_encoder.c
> +++ b/drivers/gpu/drm/amd/display/dc/dcn31/dcn31_dio_link_encoder.c
> @@ -362,8 +362,6 @@ void dcn31_link_encoder_enable_dp_output(
>  	const struct dc_link_settings *link_settings,
>  	enum clock_source_id clock_source)
>  {
> -	struct dcn10_link_encoder *enc10 = TO_DCN10_LINK_ENC(enc);
> -
>  	/* Enable transmitter and encoder. */
>  	if (!link_enc_cfg_is_transmitter_mappable(enc->ctx->dc->current_state, enc)) {
>  
> @@ -380,8 +378,6 @@ void dcn31_link_encoder_enable_dp_mst_output(
>  	const struct dc_link_settings *link_settings,
>  	enum clock_source_id clock_source)
>  {
> -	struct dcn10_link_encoder *enc10 = TO_DCN10_LINK_ENC(enc);
> -
>  	/* Enable transmitter and encoder. */
>  	if (!link_enc_cfg_is_transmitter_mappable(enc->ctx->dc->current_state, enc)) {
>  
> @@ -397,8 +393,6 @@ void dcn31_link_encoder_disable_output(
>  	struct link_encoder *enc,
>  	enum signal_type signal)
>  {
> -	struct dcn10_link_encoder *enc10 = TO_DCN10_LINK_ENC(enc);
> -
>  	/* Disable transmitter and encoder. */
>  	if (!link_enc_cfg_is_transmitter_mappable(enc->ctx->dc->current_state, enc)) {
>  
> 



More information about the amd-gfx mailing list