Skip to contentSkip to conversation

drm: display: Fix duplicate field initialization in dcn31

PATCH Applied Wan Jiabing 3 participants 3 messages Jun 15, 2021

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm: display: Fix duplicate field initialization in dcn31

Fix the following coccicheck warning:
drivers/gpu/drm/amd/display/dc/dcn31/dcn31_resource.c:917:56-57:
pstate_enabled: first occurrence line 935, second occurrence line 937

---
 drivers/gpu/drm/amd/display/dc/dcn31/dcn31_resource.c | 1 -
 1 file changed, 1 deletion(-)
drivers/gpu/drm/amd/display/dc/dcn31/dcn31_resource.c +0 -1
index 0d6cb6caad81..c67bc9544f5d 100644
@@ -934,7 +934,6 @@ static const struct dc_debug_options debug_defaults_drv = {
 	.dmub_command_table = true,
 	.pstate_enabled = true,
 	.use_max_lb = true,
-	.pstate_enabled = true,
 	.enable_mem_low_power = {
 		.bits = {
 			.vga = false,
Signature · 1 line
2.20.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 24 lines · Wan Jiabing

Fix the following coccicheck warning:
drivers/gpu/drm/amd/display/dc/dcn31/dcn31_resource.c:917:56-57:
pstate_enabled: first occurrence line 935, second occurrence line 937

---
 drivers/gpu/drm/amd/display/dc/dcn31/dcn31_resource.c | 1 -
 1 file changed, 1 deletion(-)
drivers/gpu/drm/amd/display/dc/dcn31/dcn31_resource.c +0 -1
index 0d6cb6caad81..c67bc9544f5d 100644
@@ -934,7 +934,6 @@ static const struct dc_debug_options debug_defaults_drv = {
 	.dmub_command_table = true,
 	.pstate_enabled = true,
 	.use_max_lb = true,
-	.pstate_enabled = true,
 	.enable_mem_low_power = {
 		.bits = {
 			.vga = false,
Signature · 1 line
2.20.1

Thanks

Signature · 2 lines
Rodrigo Siqueira
https://siqueira.tech
Applied
#2 lore raw

Applied. Thanks!

Quoted 38 lines · Rodrigo Siqueira
Quoted 22 lines · Wan Jiabing

Fix the following coccicheck warning:
drivers/gpu/drm/amd/display/dc/dcn31/dcn31_resource.c:917:56-57:
pstate_enabled: first occurrence line 935, second occurrence line 937

---
 drivers/gpu/drm/amd/display/dc/dcn31/dcn31_resource.c | 1 -
 1 file changed, 1 deletion(-)
drivers/gpu/drm/amd/display/dc/dcn31/dcn31_resource.c +0 -2
index 0d6cb6caad81..c67bc9544f5d 100644
@@ -934,7 +934,6 @@ static const struct dc_debug_options debug_defaults_drv = {
      .dmub_command_table = true,
      .pstate_enabled = true,
      .use_max_lb = true,
-     .pstate_enabled = true,
      .enable_mem_low_power = {
              .bits = {
                      .vga = false,
--
Quoted 2 lines

2.20.1

Thanks

--
Rodrigo Siqueira
https://siqueira.tech
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx