summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Brace <kevinbrace@gmx.com>2019-05-10 19:30:56 -0700
committerKevin Brace <kevinbrace@gmx.com>2019-05-10 19:30:56 -0700
commitb34e8641c63b4ac4166e276586807c920c3183cb (patch)
tree6ddc5399a54a2a8f1bf25f976e050330bf19868b
parenteb2d933f74fb390643c7ea37a6223783ec29848c (diff)
Add braces to two for loops that lack them
Signed-off-by: Kevin Brace <kevinbrace@gmx.com>
-rw-r--r--src/trident_pll.c6
1 files 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"