summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYifan Zhang <yifan1.zhang@amd.com>2020-04-03 17:11:14 +0800
committerAlex Deucher <alexander.deucher@amd.com>2020-04-03 17:04:01 -0400
commit50dc581a8f43f22f72af613397c6a01460d7559d (patch)
tree14d712c4c7ccebaf025e458846db708adf21b6cc
parent764a21cb085b8d7d754b5d74e2ecc6adc064e3e7 (diff)
drm/amd/display: fix the broken logic in dc_link.c
Add missing braces. Signed-off-by: Yifan Zhang <yifan1.zhang@amd.com> Reviewed-by: Feifei Xu <Feifei.Xu@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
-rw-r--r--drivers/gpu/drm/amd/display/dc/core/dc_link.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_link.c b/drivers/gpu/drm/amd/display/dc/core/dc_link.c
index a93997ff0419..1e64c0135a2c 100644
--- a/drivers/gpu/drm/amd/display/dc/core/dc_link.c
+++ b/drivers/gpu/drm/amd/display/dc/core/dc_link.c
@@ -422,8 +422,9 @@ static enum signal_type link_detect_sink(struct dc_link *link,
*/
/* PCIE detects the actual connector on add-on board */
- if (link->link_id.id == CONNECTOR_ID_PCIE)
+ if (link->link_id.id == CONNECTOR_ID_PCIE) {
/* ZAZTODO implement PCIE add-on card detection */
+ }
switch (link->link_id.id) {
case CONNECTOR_ID_HDMI_TYPE_A: {