Skip to contentSkip to conversation

drm/amd/display: Indent an if statement

PATCH Applied Dan Carpenter 2 participants 2 messages Aug 3, 2020 – Aug 4, 2020

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

PATCH 1/1 drm/amd/display: Indent an if statement

The if statement wasn't indented so it's confusing.

---
 drivers/gpu/drm/amd/display/dc/core/dc_resource.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/display/dc/core/dc_resource.c +1 -1
index ca26714c800e..c6b737dd8425 100644
@@ -71,7 +71,7 @@ enum dce_version resource_parse_asic_id(struct hw_asic_id asic_id)
 		if (ASIC_REV_IS_TAHITI_P(asic_id.hw_internal_rev) ||
 		    ASIC_REV_IS_PITCAIRN_PM(asic_id.hw_internal_rev) ||
 		    ASIC_REV_IS_CAPEVERDE_M(asic_id.hw_internal_rev))
-		dc_version = DCE_VERSION_6_0;
+			dc_version = DCE_VERSION_6_0;
 		else if (ASIC_REV_IS_OLAND_M(asic_id.hw_internal_rev))
 			dc_version = DCE_VERSION_6_4;
 		else
Signature · 1 line
2.27.0
Applied
#1 lore raw

Applied. Thanks!

Alex

Quoted 28 lines · Dan Carpenter

The if statement wasn't indented so it's confusing.

---
 drivers/gpu/drm/amd/display/dc/core/dc_resource.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/gpu/drm/amd/display/dc/core/dc_resource.c +1 -2
index ca26714c800e..c6b737dd8425 100644
@@ -71,7 +71,7 @@ enum dce_version resource_parse_asic_id(struct hw_asic_id asic_id)
                if (ASIC_REV_IS_TAHITI_P(asic_id.hw_internal_rev) ||
                    ASIC_REV_IS_PITCAIRN_PM(asic_id.hw_internal_rev) ||
                    ASIC_REV_IS_CAPEVERDE_M(asic_id.hw_internal_rev))
-               dc_version = DCE_VERSION_6_0;
+                       dc_version = DCE_VERSION_6_0;
                else if (ASIC_REV_IS_OLAND_M(asic_id.hw_internal_rev))
                        dc_version = DCE_VERSION_6_4;
                else
--

2.27.0

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