OSDN Git Service

drm/amd/display: fix the broken logic in dc_link.c
authorYifan Zhang <yifan1.zhang@amd.com>
Fri, 3 Apr 2020 09:11:14 +0000 (17:11 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 3 Apr 2020 21:04:01 +0000 (17:04 -0400)
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>
drivers/gpu/drm/amd/display/dc/core/dc_link.c

index a93997f..1e64c01 100644 (file)
@@ -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: {