Skip to contentSkip to conversation

drm/amd/display: remove a duplicated declaration

PATCH In review Asher Song 2 participants 2 messages Aug 31, 2022

Subsystems (4)
lore
Share & tools
lore

Asher Song

author
#0 lore raw

PATCH 1/1 drm/amd/display: remove a duplicated declaration

There are duplicated declarations of i, remove one of those.

---
 drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c +1 -1
index 9f8976b18839..7f6c977c4981 100644
@@ -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)
Signature · 1 line
2.25.1
Reviewed-by on v1 1/1
#1 lore raw

+Harry/Jay to comment if needed.

Regards,
Guchun

-----Original Message-----
From: Song, Asher <[email protected]>
Sent: Wednesday, August 31, 2022 2:36 PM
To: [email protected]
Cc: Chen, Guchun <[email protected]>; Ma, Jun <[email protected]>; Cui, Flora <[email protected]>; Shi, Leslie <[email protected]>; Song, Asher <[email protected]>
Subject: [PATCH] drm/amd/display: remove a duplicated declaration

There are duplicated declarations of i, remove one of those.

---
 drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/display/dc/dml/dcn32/dcn32_fpu.c +1 -1
index 9f8976b18839..7f6c977c4981 100644
@@ -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)
Signature · 1 line
2.25.1