OSDN Git Service

drm/amd/display: Adding braces to prepare for future changes to behavior of if block
authorLeo Chen <sancchen@amd.com>
Sat, 10 Dec 2022 00:08:54 +0000 (19:08 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 3 Jan 2023 21:57:57 +0000 (16:57 -0500)
[Why & How]
For certain features, there will be more implementations needed in the if-block.
Braces are added as part of the preparation.

Acked-by: Aurabindo Pillai <aurabindo.pillai@amd.com>
Signed-off-by: Leo Chen <sancchen@amd.com>
Reviewed-by: Charlene Liu <Charlene.Liu@amd.com>
Tested-by: Daniel Wheeler <daniel.wheeler@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/core/dc.c

index f419338..dbf90ca 100644 (file)
@@ -2008,8 +2008,9 @@ bool dc_commit_state(struct dc *dc, struct dc_state *context)
                return result == DC_OK;
        }
 
-       if (!streams_changed(dc, context->streams, context->stream_count))
+       if (!streams_changed(dc, context->streams, context->stream_count)) {
                return DC_OK;
+       }
 
        DC_LOG_DC("%s: %d streams\n",
                                __func__, context->stream_count);