From: Asher Song Date: Wed, 31 Aug 2022 05:47:33 +0000 (+0800) Subject: drm/amd/display: remove a duplicated declaration X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=922710a82d267b785fbc892081c01e68148afe3b;p=linux.git drm/amd/display: remove a duplicated declaration There are duplicated declarations of i, remove one of those. Signed-off-by: Asher Song Reviewed-by: Guchun Chen Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c b/drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c index 9f8976b188399..7f6c977c49814 100644 --- a/drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c +++ b/drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c @@ -1025,7 +1025,7 @@ static void dcn32_full_validate_bw_helper(struct dc *dc, dcn32_merge_pipes_for_subvp(dc, context); // to re-initialize viewport after the pipe merge - for (int i = 0; i < dc->res_pool->pipe_count; i++) { + for (i = 0; i < dc->res_pool->pipe_count; i++) { struct pipe_ctx *pipe_ctx = &context->res_ctx.pipe_ctx[i]; if (!pipe_ctx->plane_state || !pipe_ctx->stream)