Skip to contentSkip to conversation

drm/amd/display: Clean up errors in display_mode_vba_30.c

PATCH Applied Ran Sun 2 participants 2 messages Aug 2, 2023 – Aug 7, 2023

Subsystems (4)
lore
Share & tools
lore

Ran Sun

author
#0 lore raw

PATCH 1/1 drm/amd/display: Clean up errors in display_mode_vba_30.c

Fix the following errors reported by checkpatch:

ERROR: else should follow close brace '}'

---
 .../gpu/drm/amd/display/dc/dml/dcn30/display_mode_vba_30.c  | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
drivers/gpu/drm/amd/display/dc/dml/dcn30/display_mode_vba_30.c +2 -4
index 9af1a43c042b..ad741a723c0e 100644
@@ -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;
 		}
Signature · 1 line
2.17.1
Applied
#1 lore raw

Applied. Thanks!

Quoted 37 lines · Ran Sun

Fix the following errors reported by checkpatch:

ERROR: else should follow close brace '}'

---
 .../gpu/drm/amd/display/dc/dml/dcn30/display_mode_vba_30.c  | 6 ++----
 1 file changed, 2 insertions(+), 4 deletions(-)
drivers/gpu/drm/amd/display/dc/dml/dcn30/display_mode_vba_30.c +2 -5
index 9af1a43c042b..ad741a723c0e 100644
@@ -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;
                }
--

2.17.1