[PATCH] drm/amd/display: remove a duplicated declaration
Chen, Guchun
Guchun.Chen at amd.com
Wed Aug 31 07:11:53 UTC 2022
+Harry/Jay to comment if needed.
Reviewed-by: Guchun Chen <guchun.chen at amd.com>
Regards,
Guchun
-----Original Message-----
From: Song, Asher <Asher.Song at amd.com>
Sent: Wednesday, August 31, 2022 2:36 PM
To: amd-gfx at lists.freedesktop.org
Cc: Chen, Guchun <Guchun.Chen at amd.com>; Ma, Jun <Jun.Ma2 at amd.com>; Cui, Flora <Flora.Cui at amd.com>; Shi, Leslie <Yuliang.Shi at amd.com>; Song, Asher <Asher.Song at amd.com>
Subject: [PATCH] drm/amd/display: remove a duplicated declaration
There are duplicated declarations of i, remove one of those.
Signed-off-by: Asher Song <Asher.Song at amd.com>
---
drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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)
--
2.25.1
More information about the amd-gfx
mailing list