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 <pisit@ndrsolution.com>
This commit is contained in:
Pisit Sawangvonganan 2024-08-16 13:16:44 +07:00 committed by Henrik Brix Andersen
commit 535b854d87
3 changed files with 6 additions and 3 deletions

View file

@ -33,8 +33,9 @@ static int thunderboard_init(void)
return -ENODEV; return -ENODEV;
} }
ret = gpio_pin_configure_dt(&wake_up_gpio_dev, GPIO_OUTPUT_ACTIVE); ret = gpio_pin_configure_dt(&wake_up_gpio_dev, GPIO_OUTPUT_ACTIVE);
if (ret < 0) if (ret < 0) {
return ret; return ret;
}
return 0; return 0;
} }

View file

@ -33,8 +33,9 @@ static int efr32xg24_dk2601b_init(void)
return -ENODEV; return -ENODEV;
} }
ret = gpio_pin_configure_dt(&wake_up_gpio_dev, GPIO_OUTPUT_ACTIVE); ret = gpio_pin_configure_dt(&wake_up_gpio_dev, GPIO_OUTPUT_ACTIVE);
if (ret < 0) if (ret < 0) {
return ret; return ret;
}
return 0; return 0;
} }

View file

@ -33,8 +33,9 @@ static int dev_kit_init(void)
return -ENODEV; return -ENODEV;
} }
ret = gpio_pin_configure_dt(&wake_up_gpio_dev, GPIO_OUTPUT_ACTIVE); ret = gpio_pin_configure_dt(&wake_up_gpio_dev, GPIO_OUTPUT_ACTIVE);
if (ret < 0) if (ret < 0) {
return ret; return ret;
}
return 0; return 0;
} }