[PATCH xf86-video-trident 1/2] Add braces to two for loops that lack them

Kevin Brace kevinbrace at gmx.com
Sat May 11 03:41:09 UTC 2019


Signed-off-by: Kevin Brace <kevinbrace at gmx.com>
---
 src/trident_pll.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/trident_pll.c b/src/trident_pll.c
index f94268e..1301daf 100644
--- a/src/trident_pll.c
+++ b/src/trident_pll.c
@@ -71,8 +71,8 @@ TGUISetClock(ScrnInfoPtr pScrn, int clock, CARD8 *a, CARD8 *b)

     freq = clock;

-    for (k = startk; k <= endk; k++)
-        for (n = 0; n <= endn; n++)
+    for (k = startk; k <= endk; k++) {
+        for (n = 0; n <= endn; n++) {
             for (m = 1; m <= endm; m++) {
                 ffreq = ((((n + 8) * pTrident->frequency) /
                             ((m + 2) * powerup[k])) * 1000);
@@ -97,6 +97,8 @@ TGUISetClock(ScrnInfoPtr pScrn, int clock, CARD8 *a, CARD8 *b)
 #endif
                 }
             }
+        }
+    }

     if (s == 0) {
         FatalError("Unable to set programmable clock.\n"
--
2.17.1



More information about the xorg-devel mailing list