Signed-off-by: Kevin Brace <kevinbr...@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

_______________________________________________
xorg-devel@lists.x.org: X.Org development
Archives: http://lists.x.org/archives/xorg-devel
Info: https://lists.x.org/mailman/listinfo/xorg-devel

Reply via email to