OSDN Git Service

drm/amd/amdgpu: Fix style issues in dcn20_resource.c
authorErnst Sjöstrand <ernstp@gmail.com>
Mon, 24 Jun 2019 15:15:43 +0000 (17:15 +0200)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 25 Jun 2019 18:23:45 +0000 (13:23 -0500)
Inconsistent indentation and mixed use of brackets.

Signed-off-by: Ernst Sjöstrand <ernstp@gmail.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c

index a8ba7d1..fb8aff7 100644 (file)
@@ -2889,15 +2889,15 @@ static bool construct(
        dc->caps.force_dp_tps4_for_cp2520 = true;
        dc->caps.hw_3d_lut = true;
 
-       if (dc->ctx->dce_environment == DCE_ENV_PRODUCTION_DRV)
+       if (dc->ctx->dce_environment == DCE_ENV_PRODUCTION_DRV) {
                dc->debug = debug_defaults_drv;
-       else if (dc->ctx->dce_environment == DCE_ENV_FPGA_MAXIMUS) {
-                       pool->base.pipe_count = 4;
-
+       } else if (dc->ctx->dce_environment == DCE_ENV_FPGA_MAXIMUS) {
+               pool->base.pipe_count = 4;
                pool->base.mpcc_count = pool->base.pipe_count;
                dc->debug = debug_defaults_diags;
-       } else
+       } else {
                dc->debug = debug_defaults_diags;
+       }
        //dcn2.0x
        dc->work_arounds.dedcn20_305_wa = true;