diff options
author | Richard Braun <rbraun@sceen.net> | 2016-12-09 01:41:06 +0100 |
---|---|---|
committer | Richard Braun <rbraun@sceen.net> | 2016-12-09 01:41:06 +0100 |
commit | 39c13b3b84b34e0938220126c8f147d2b0b6ac89 (patch) | |
tree | 92accef33f04f49a01765e00ec026b092ae0c8ca /kern/cpumap.c | |
parent | 84c92cd2be8bc4aea6c14a186f79c2277f0fd4aa (diff) |
Force brackets around one-line conditional statements
This change was done using astyle, with a few manual editing here and
there.
Diffstat (limited to 'kern/cpumap.c')
-rw-r--r-- | kern/cpumap.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/kern/cpumap.c b/kern/cpumap.c index ccec0d22..2cc3511c 100644 --- a/kern/cpumap.c +++ b/kern/cpumap.c @@ -36,8 +36,9 @@ cpumap_setup(void) cpumap_zero(&cpumap_active_cpus); nr_cpus = cpu_count(); - for (i = 0; i < nr_cpus; i++) + for (i = 0; i < nr_cpus; i++) { cpumap_set(&cpumap_active_cpus, i); + } } const struct cpumap * @@ -53,8 +54,9 @@ cpumap_create(struct cpumap **cpumapp) cpumap = kmem_cache_alloc(&cpumap_cache); - if (cpumap == NULL) + if (cpumap == NULL) { return ERROR_NOMEM; + } *cpumapp = cpumap; return 0; @@ -73,8 +75,9 @@ cpumap_check(const struct cpumap *cpumap) index = bitmap_find_first(cpumap->cpus, cpu_count()); - if (index == -1) + if (index == -1) { return ERROR_INVAL; + } return 0; } |