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:
parent
a408b56e12
commit
49b36ead95
45 changed files with 243 additions and 146 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue