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-21 02:59:41 +07:00 committed by Anas Nashif
parent 56b6ccb2f4
commit 9113096389

View file

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