[PATCH 1/2] drm/amdgpu/display: drop set but unused variable

Harry Wentland hwentlan at amd.com
Thu Jun 23 21:36:05 UTC 2022



On 6/23/22 12:41, Alex Deucher wrote:
> No longer used so drop it.
> 
> Fixes: ec457f837890 ("drm/amd/display: Drop unnecessary detect link code")
> Reported-by: kernel test robot <lkp at intel.com>
> Signed-off-by: Alex Deucher <alexander.deucher at amd.com>

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

Harry

> ---
>  drivers/gpu/drm/amd/display/dc/core/dc_link.c | 2 --
>  1 file changed, 2 deletions(-)
> 
> diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_link.c b/drivers/gpu/drm/amd/display/dc/core/dc_link.c
> index 1206a3dd746f..86a553757d14 100644
> --- a/drivers/gpu/drm/amd/display/dc/core/dc_link.c
> +++ b/drivers/gpu/drm/amd/display/dc/core/dc_link.c
> @@ -1022,7 +1022,6 @@ static bool detect_link_and_local_sink(struct dc_link *link,
>  	struct dc_sink *prev_sink = NULL;
>  	struct dpcd_caps prev_dpcd_caps;
>  	enum dc_connection_type new_connection_type = dc_connection_none;
> -	enum dc_connection_type pre_connection_type = dc_connection_none;
>  	const uint32_t post_oui_delay = 30; // 30ms
>  
>  	DC_LOGGER_INIT(link->ctx->logger);
> @@ -1059,7 +1058,6 @@ static bool detect_link_and_local_sink(struct dc_link *link,
>  
>  	link_disconnect_sink(link);
>  	if (new_connection_type != dc_connection_none) {
> -		pre_connection_type = link->type;
>  		link->type = new_connection_type;
>  		link->link_state_valid = false;
>  


More information about the amd-gfx mailing list