style: add braces around if/while statements
Per guidelines, all statements should have braces around them. We do not have a CI check for this, so a few went in unnoticed. Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
parent
912e117e9e
commit
4c32258606
63 changed files with 281 additions and 195 deletions
|
@ -38,8 +38,9 @@ static u32_t wdt_sam0_timeout_to_wdt_period(u32_t timeout_ms)
|
|||
cycles = (timeout_ms * 1024U) / 1000;
|
||||
|
||||
/* Minimum wdt period is 8 clock cycles (register value 0) */
|
||||
if (cycles <= 8U)
|
||||
if (cycles <= 8U) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
/* Round up to next pow2 and calculate the register value */
|
||||
next_pow2 = (1ULL << 32) >> __builtin_clz(cycles - 1);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue