Commit 7afe3521 authored by Lee Jones's avatar Lee Jones Committed by Alex Deucher

drm/amd/display/dc/link/protocols/link_dp_training: Remove set but unused variable 'result'

Fixes the following W=1 kernel build warning(s):

 drivers/gpu/drm/amd/amdgpu/../display/dc/link/protocols/link_dp_training.c: In function ‘perform_link_training_with_retries’:
 drivers/gpu/drm/amd/amdgpu/../display/dc/link/protocols/link_dp_training.c:1586:38: warning: variable ‘result’ set but not used [-Wunused-but-set-variable]

Cc: Harry Wentland <harry.wentland@amd.com>
Cc: Leo Li <sunpeng.li@amd.com>
Cc: Rodrigo Siqueira <Rodrigo.Siqueira@amd.com>
Cc: Alex Deucher <alexander.deucher@amd.com>
Cc: "Christian König" <christian.koenig@amd.com>
Cc: "Pan, Xinhui" <Xinhui.Pan@amd.com>
Cc: David Airlie <airlied@gmail.com>
Cc: Daniel Vetter <daniel@ffwll.ch>
Cc: Wenjing Liu <wenjing.liu@amd.com>
Cc: amd-gfx@lists.freedesktop.org
Cc: dri-devel@lists.freedesktop.org
Signed-off-by: default avatarLee Jones <lee@kernel.org>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent c5401151
...@@ -1580,8 +1580,7 @@ bool perform_link_training_with_retries( ...@@ -1580,8 +1580,7 @@ bool perform_link_training_with_retries(
* Report and continue with eDP panel mode to * Report and continue with eDP panel mode to
* perform eDP link training with right settings * perform eDP link training with right settings
*/ */
bool result; cp_psp->funcs.enable_assr(cp_psp->handle, link);
result = cp_psp->funcs.enable_assr(cp_psp->handle, link);
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment