drm/amd/display: Clean up errors in display_mode_vba_30.c
authorRan Sun <sunran001@208suo.com>
Wed, 2 Aug 2023 06:20:25 +0000 (06:20 +0000)
committerAlex Deucher <alexander.deucher@amd.com>
Wed, 9 Aug 2023 13:43:09 +0000 (09:43 -0400)
Fix the following errors reported by checkpatch:

ERROR: else should follow close brace '}'

Signed-off-by: Ran Sun <sunran001@208suo.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dml/dcn30/display_mode_vba_30.c

index 9af1a43c042bc8dce9cbaa08906266c7abfda778..ad741a723c0e8a697a5fd1ad98d3d38d9eddbf58 100644 (file)
@@ -784,8 +784,7 @@ static unsigned int dscComputeDelay(enum output_format_class pixelFormat, enum o
                Delay = Delay + 1;
                //   sft
                Delay = Delay + 1;
-       }
-       else {
+       } else {
                //   sfr
                Delay = Delay + 2;
                //   dsccif
@@ -3489,8 +3488,7 @@ static double TruncToValidBPP(
                if (Format == dm_n422) {
                        MinDSCBPP = 7;
                        MaxDSCBPP = 2 * DSCInputBitPerComponent - 1.0 / 16.0;
-               }
-               else {
+               } else {
                        MinDSCBPP = 8;
                        MaxDSCBPP = 3 * DSCInputBitPerComponent - 1.0 / 16.0;
                }