Commit c2899c34 authored by Thomas Gleixner's avatar Thomas Gleixner

genirq/affinity: Remove excess indentation

Plus other coding style issues which stood out while staring at that code.
Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
parent ff3730a4
...@@ -95,11 +95,11 @@ static int get_nodes_in_cpumask(cpumask_var_t *node_to_cpumask, ...@@ -95,11 +95,11 @@ static int get_nodes_in_cpumask(cpumask_var_t *node_to_cpumask,
} }
static int __irq_build_affinity_masks(const struct irq_affinity *affd, static int __irq_build_affinity_masks(const struct irq_affinity *affd,
int startvec, int numvecs, int firstvec, int startvec, int numvecs, int firstvec,
cpumask_var_t *node_to_cpumask, cpumask_var_t *node_to_cpumask,
const struct cpumask *cpu_mask, const struct cpumask *cpu_mask,
struct cpumask *nmsk, struct cpumask *nmsk,
struct cpumask *masks) struct cpumask *masks)
{ {
int n, nodes, cpus_per_vec, extra_vecs, done = 0; int n, nodes, cpus_per_vec, extra_vecs, done = 0;
int last_affv = firstvec + numvecs; int last_affv = firstvec + numvecs;
...@@ -180,10 +180,10 @@ static int irq_build_affinity_masks(const struct irq_affinity *affd, ...@@ -180,10 +180,10 @@ static int irq_build_affinity_masks(const struct irq_affinity *affd,
cpumask_var_t nmsk, npresmsk; cpumask_var_t nmsk, npresmsk;
if (!zalloc_cpumask_var(&nmsk, GFP_KERNEL)) if (!zalloc_cpumask_var(&nmsk, GFP_KERNEL))
return ret; return ret;
if (!zalloc_cpumask_var(&npresmsk, GFP_KERNEL)) if (!zalloc_cpumask_var(&npresmsk, GFP_KERNEL))
goto fail; goto fail;
ret = 0; ret = 0;
/* Stabilize the cpumasks */ /* Stabilize the cpumasks */
...@@ -212,7 +212,7 @@ static int irq_build_affinity_masks(const struct irq_affinity *affd, ...@@ -212,7 +212,7 @@ static int irq_build_affinity_masks(const struct irq_affinity *affd,
put_online_cpus(); put_online_cpus();
if (nr_present < numvecs) if (nr_present < numvecs)
WARN_ON(nr_present + nr_others < numvecs); WARN_ON(nr_present + nr_others < numvecs);
free_cpumask_var(npresmsk); free_cpumask_var(npresmsk);
...@@ -271,9 +271,9 @@ irq_create_affinity_masks(int nvecs, const struct irq_affinity *affd) ...@@ -271,9 +271,9 @@ irq_create_affinity_masks(int nvecs, const struct irq_affinity *affd)
ret = irq_build_affinity_masks(affd, curvec, this_vecs, ret = irq_build_affinity_masks(affd, curvec, this_vecs,
curvec, node_to_cpumask, masks); curvec, node_to_cpumask, masks);
if (ret) { if (ret) {
kfree(masks); kfree(masks);
masks = NULL; masks = NULL;
goto outnodemsk; goto outnodemsk;
} }
curvec += this_vecs; curvec += this_vecs;
usedvecs += this_vecs; usedvecs += this_vecs;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment