Skip to content

Commit c2899c3

Browse files
committed
genirq/affinity: Remove excess indentation
Plus other coding style issues which stood out while staring at that code. Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
1 parent ff3730a commit c2899c3

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

kernel/irq/affinity.c

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -95,11 +95,11 @@ static int get_nodes_in_cpumask(cpumask_var_t *node_to_cpumask,
9595
}
9696

9797
static int __irq_build_affinity_masks(const struct irq_affinity *affd,
98-
int startvec, int numvecs, int firstvec,
99-
cpumask_var_t *node_to_cpumask,
100-
const struct cpumask *cpu_mask,
101-
struct cpumask *nmsk,
102-
struct cpumask *masks)
98+
int startvec, int numvecs, int firstvec,
99+
cpumask_var_t *node_to_cpumask,
100+
const struct cpumask *cpu_mask,
101+
struct cpumask *nmsk,
102+
struct cpumask *masks)
103103
{
104104
int n, nodes, cpus_per_vec, extra_vecs, done = 0;
105105
int last_affv = firstvec + numvecs;
@@ -180,10 +180,10 @@ static int irq_build_affinity_masks(const struct irq_affinity *affd,
180180
cpumask_var_t nmsk, npresmsk;
181181

182182
if (!zalloc_cpumask_var(&nmsk, GFP_KERNEL))
183-
return ret;
183+
return ret;
184184

185185
if (!zalloc_cpumask_var(&npresmsk, GFP_KERNEL))
186-
goto fail;
186+
goto fail;
187187

188188
ret = 0;
189189
/* Stabilize the cpumasks */
@@ -212,7 +212,7 @@ static int irq_build_affinity_masks(const struct irq_affinity *affd,
212212
put_online_cpus();
213213

214214
if (nr_present < numvecs)
215-
WARN_ON(nr_present + nr_others < numvecs);
215+
WARN_ON(nr_present + nr_others < numvecs);
216216

217217
free_cpumask_var(npresmsk);
218218

@@ -271,9 +271,9 @@ irq_create_affinity_masks(int nvecs, const struct irq_affinity *affd)
271271
ret = irq_build_affinity_masks(affd, curvec, this_vecs,
272272
curvec, node_to_cpumask, masks);
273273
if (ret) {
274-
kfree(masks);
275-
masks = NULL;
276-
goto outnodemsk;
274+
kfree(masks);
275+
masks = NULL;
276+
goto outnodemsk;
277277
}
278278
curvec += this_vecs;
279279
usedvecs += this_vecs;

0 commit comments

Comments
 (0)