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

Submitted by Kevin Brace on May 11, 2019, 3:41 a.m.

Details

Message ID 20190511034110.6022-2-kevinbrace@gmx.com
State New
Headers show
Series "Minor adjustments to trident_pll.c" ( rev: 1 ) in X.org

Not browsing as part of any series.

Commit Message

Kevin Brace May 11, 2019, 3:41 a.m.
Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
---
 src/trident_pll.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

--
2.17.1

Patch hide | download patch | download mbox

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"