diff options
author | Alex Deucher <alexander.deucher@amd.com> | 2022-07-06 09:59:38 -0400 |
---|---|---|
committer | Alex Deucher <alexander.deucher@amd.com> | 2022-07-07 15:55:24 -0400 |
commit | b83c9e3dd5b5dabc507e79c3f03e700a20b2a4ee (patch) | |
tree | 1480753375ded430dd2d8e5ef260453eec822472 /drivers/gpu/drm/amd/display/dc/dcn32/dcn32_hwseq.c | |
parent | f72fc9bd226979c272d6f829a3c60c3d9e8dc969 (diff) | |
download | linux-b83c9e3dd5b5dabc507e79c3f03e700a20b2a4ee.tar.gz |
drm/amd/display: remove set but unused variable
Fixes the following:
drivers/gpu/drm/amd/amdgpu/../display/dc/dcn32/dcn32_hwseq.c:428:33: warning: variable 'old_pipe' set but not used
Reported-by: kernel test robot <lkp@intel.com>
Reviewed-by: Harry Wentland <harry.wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm/amd/display/dc/dcn32/dcn32_hwseq.c')
-rw-r--r-- | drivers/gpu/drm/amd/display/dc/dcn32/dcn32_hwseq.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/dcn32/dcn32_hwseq.c b/drivers/gpu/drm/amd/display/dc/dcn32/dcn32_hwseq.c index 0f1b72ca0397..b6bada383958 100644 --- a/drivers/gpu/drm/amd/display/dc/dcn32/dcn32_hwseq.c +++ b/drivers/gpu/drm/amd/display/dc/dcn32/dcn32_hwseq.c @@ -425,11 +425,10 @@ void dcn32_subvp_pipe_control_lock(struct dc *dc, bool subvp_immediate_flip = false; bool subvp_in_use = false; bool drr_pipe = false; - struct pipe_ctx *pipe, *old_pipe; + struct pipe_ctx *pipe; for (i = 0; i < dc->res_pool->pipe_count; i++) { pipe = &context->res_ctx.pipe_ctx[i]; - old_pipe = &dc->current_state->res_ctx.pipe_ctx[i]; if (pipe->stream && pipe->plane_state && pipe->stream->mall_stream_config.type == SUBVP_MAIN) { subvp_in_use = true; |