drm/amd/display: remove set but unused variable 'state'
Subsystems (3)
PATCH 1/1 drm/amd/display: remove set but unused variable 'state'
The variable state is not effectively used in the function, so delete it.
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn32/dcn32_resource.c:1613:24: warning: variable ‘state’ set but not used.
Reported-by Abaci Robot <[email protected]>
Signed-off-by Jiapeng Chong <[email protected]>
--- drivers/gpu/drm/amd/display/dc/dcn32/dcn32_resource.c | 2 -- 1 file changed, 2 deletions(-)
drivers/gpu/drm/amd/display/dc/dcn32/dcn32_resource.c +0 -2
@@ -1610,7 +1610,6 @@ bool dcn32_acquire_post_bldn_3dlut( struct dc_transfer_func **shaper) {bool ret = false; -union dc_3dlut_state *state;ASSERT (*lut ==NULL && *shaper ==NULL ); *lut =NULL ;
@@ -1619,7 +1618,6 @@ bool dcn32_acquire_post_bldn_3dlut(if (!res_ctx->is_mpc_3dlut_acquired[mpcc_id]) { *lut = pool->mpc_lut[mpcc_id]; *shaper = pool->mpc_shaper[mpcc_id]; - state = &pool->mpc_lut[mpcc_id]->state; res_ctx->is_mpc_3dlut_acquired[mpcc_id] = true; ret = true; }
Signature · 1 line
2.20.1.7.g153144c