Skip to content

Commit cdf07f0

Browse files
Ming LeiKAGA-KOKO
authored andcommitted
genirq/affinity: Remove the 'firstvec' parameter from irq_build_affinity_masks
The 'firstvec' parameter is always same with the parameter of 'startvec', so use 'startvec' directly inside irq_build_affinity_masks(). Signed-off-by: Ming Lei <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Reviewed-by: John Garry <[email protected]> Reviewed-by: Jens Axboe <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent 0e2213f commit cdf07f0

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

kernel/irq/affinity.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -337,10 +337,10 @@ static int __irq_build_affinity_masks(unsigned int startvec,
337337
* 2) spread other possible CPUs on these vectors
338338
*/
339339
static int irq_build_affinity_masks(unsigned int startvec, unsigned int numvecs,
340-
unsigned int firstvec,
341340
struct irq_affinity_desc *masks)
342341
{
343342
unsigned int curvec = startvec, nr_present = 0, nr_others = 0;
343+
unsigned int firstvec = startvec;
344344
cpumask_var_t *node_to_cpumask;
345345
cpumask_var_t nmsk, npresmsk;
346346
int ret = -ENOMEM;
@@ -463,8 +463,7 @@ irq_create_affinity_masks(unsigned int nvecs, struct irq_affinity *affd)
463463
unsigned int this_vecs = affd->set_size[i];
464464
int ret;
465465

466-
ret = irq_build_affinity_masks(curvec, this_vecs,
467-
curvec, masks);
466+
ret = irq_build_affinity_masks(curvec, this_vecs, masks);
468467
if (ret) {
469468
kfree(masks);
470469
return NULL;

0 commit comments

Comments
 (0)