Commit 9422f2fa authored by Aric Cyr's avatar Aric Cyr Committed by Alex Deucher

drm/amd/display: reduce scope for local var

[Why]
No reason to have uninitialized var at top of function

[How]
Move it to minimum scope where it's actuallty used
Signed-off-by: default avatarAric Cyr <aric.cyr@amd.com>
Acked-by: default avatarBindu Ramamurthy <bindu.r@amd.com>
Tested-by: default avatarDaniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent 6ad98e8a
...@@ -2348,7 +2348,6 @@ static void commit_planes_do_stream_update(struct dc *dc, ...@@ -2348,7 +2348,6 @@ static void commit_planes_do_stream_update(struct dc *dc,
struct dc_state *context) struct dc_state *context)
{ {
int j; int j;
bool should_program_abm;
// Stream updates // Stream updates
for (j = 0; j < dc->res_pool->pipe_count; j++) { for (j = 0; j < dc->res_pool->pipe_count; j++) {
...@@ -2424,7 +2423,7 @@ static void commit_planes_do_stream_update(struct dc *dc, ...@@ -2424,7 +2423,7 @@ static void commit_planes_do_stream_update(struct dc *dc,
} }
if (stream_update->abm_level && pipe_ctx->stream_res.abm) { if (stream_update->abm_level && pipe_ctx->stream_res.abm) {
should_program_abm = true; bool should_program_abm = true;
// if otg funcs defined check if blanked before programming // if otg funcs defined check if blanked before programming
if (pipe_ctx->stream_res.tg->funcs->is_blanked) if (pipe_ctx->stream_res.tg->funcs->is_blanked)
......
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