Added curly brackets for the single line if else statement.

pull/5144/head
Dave Wu 2017-10-09 17:28:46 +11:00
parent 5ea792cc9a
commit 6f9a54777d
1 changed files with 3 additions and 2 deletions

View File

@ -189,10 +189,11 @@ void set_clock_gating(peripheral_clk_t eClk, int enable)
}
// if enable, set the bit otherwise clear the bit
if (enable)
if (enable) {
pADI_CLKG0_CLK->CTL5 |= flag;
else
} else {
pADI_CLKG0_CLK->CTL5 &= (~flag);
}
}