From: Harry Wentland Date: Tue, 31 Oct 2017 19:17:27 +0000 (-0400) Subject: drm/amd/display: Remove unused register read in program_pwl X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=a696dc208fa123d7c710ae757d3f621e9ab8b081;p=openwrt%2Fstaging%2Fblogic.git drm/amd/display: Remove unused register read in program_pwl Signed-off-by: Harry Wentland Reviewed-by: Tony Cheng Reviewed-by: Anthony Koo Acked-by: Harry Wentland Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/display/dc/dce/dce_transform.c b/drivers/gpu/drm/amd/display/dc/dce/dce_transform.c index 97414abbc69d..330dbe9989d4 100644 --- a/drivers/gpu/drm/amd/display/dc/dce/dce_transform.c +++ b/drivers/gpu/drm/amd/display/dc/dce/dce_transform.c @@ -1181,7 +1181,6 @@ static void program_pwl( struct dce_transform *xfm_dce, const struct pwl_params *params) { - uint32_t value; int retval; uint8_t max_tries = 10; uint8_t counter = 0; @@ -1198,7 +1197,6 @@ static void program_pwl( while (counter < max_tries) { if (REG(DCFE_MEM_PWR_STATUS)) { - value = REG_READ(DCFE_MEM_PWR_STATUS); REG_GET(DCFE_MEM_PWR_STATUS, DCP_REGAMMA_MEM_PWR_STATE, &retval); @@ -1207,7 +1205,6 @@ static void program_pwl( break; ++counter; } else { - value = REG_READ(DCFE_MEM_LIGHT_SLEEP_CNTL); REG_GET(DCFE_MEM_LIGHT_SLEEP_CNTL, REGAMMA_LUT_MEM_PWR_STATE, &retval);