aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAsher Song <Asher.Song@amd.com>2022-08-31 13:47:33 +0800
committerAlex Deucher <alexander.deucher@amd.com>2022-09-01 15:12:16 -0400
commit922710a82d267b785fbc892081c01e68148afe3b (patch)
tree21353bea36bc793d6ae7cadafcf0cc2d29f78284
parentdrm/amdgpu/vcn: Add MMSCH v4_0 support for sriov (diff)
downloadlinux-dev-922710a82d267b785fbc892081c01e68148afe3b.tar.xz
linux-dev-922710a82d267b785fbc892081c01e68148afe3b.zip
drm/amd/display: remove a duplicated declaration
There are duplicated declarations of i, remove one of those. Signed-off-by: Asher Song <Asher.Song@amd.com> Reviewed-by: Guchun Chen <guchun.chen@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
-rw-r--r--drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c2
1 files changed, 1 insertions, 1 deletions
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 9f8976b18839..7f6c977c4981 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)