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

Alex Deucher alexander.deucher at amd.com
Mon Jan 31 21:53:42 UTC 2022


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 at amd.com>
---
 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 */
-- 
2.34.1



More information about the amd-gfx mailing list