Skip to content

Commit 535b854

Browse files
ndrs-psthenrikbrixandersen
authored andcommitted
style: boards: comply with MISRA C:2012 Rule 15.6
Add missing braces to comply with MISRA C:2012 Rule 15.6 and also following Zephyr's style guideline. Signed-off-by: Pisit Sawangvonganan <[email protected]>
1 parent cbb6233 commit 535b854

File tree

3 files changed

+6
-3
lines changed

3 files changed

+6
-3
lines changed

boards/silabs/dev_kits/sltb010a/board.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,9 @@ static int thunderboard_init(void)
3333
return -ENODEV;
3434
}
3535
ret = gpio_pin_configure_dt(&wake_up_gpio_dev, GPIO_OUTPUT_ACTIVE);
36-
if (ret < 0)
36+
if (ret < 0) {
3737
return ret;
38+
}
3839

3940
return 0;
4041
}

boards/silabs/dev_kits/xg24_dk2601b/board.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,9 @@ static int efr32xg24_dk2601b_init(void)
3333
return -ENODEV;
3434
}
3535
ret = gpio_pin_configure_dt(&wake_up_gpio_dev, GPIO_OUTPUT_ACTIVE);
36-
if (ret < 0)
36+
if (ret < 0) {
3737
return ret;
38+
}
3839

3940
return 0;
4041
}

boards/silabs/dev_kits/xg27_dk2602a/board.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,9 @@ static int dev_kit_init(void)
3333
return -ENODEV;
3434
}
3535
ret = gpio_pin_configure_dt(&wake_up_gpio_dev, GPIO_OUTPUT_ACTIVE);
36-
if (ret < 0)
36+
if (ret < 0) {
3737
return ret;
38+
}
3839

3940
return 0;
4041
}

0 commit comments

Comments
 (0)