drivers: add mising braces to single line if statements

Following zephyr's style guideline, all if statements, including single
line statements shall have braces.

Signed-off-by: Anas Nashif <anas.nashif@intel.com>
This commit is contained in:
Anas Nashif 2022-07-06 07:34:50 -04:00
commit 49b36ead95
45 changed files with 243 additions and 146 deletions

View file

@ -42,8 +42,9 @@ int pm_cpu_off(void)
{
int ret;
if (psci_data.conduit == SMCCC_CONDUIT_NONE)
if (psci_data.conduit == SMCCC_CONDUIT_NONE) {
return -EINVAL;
}
ret = psci_data.invoke_psci_fn(PSCI_0_2_FN_CPU_OFF, 0, 0, 0);
@ -55,8 +56,9 @@ int pm_cpu_on(unsigned long cpuid,
{
int ret;
if (psci_data.conduit == SMCCC_CONDUIT_NONE)
if (psci_data.conduit == SMCCC_CONDUIT_NONE) {
return -EINVAL;
}
ret = psci_data.invoke_psci_fn(PSCI_FN_NATIVE(0_2, CPU_ON), cpuid,
(unsigned long) entry_point, 0);