Skip to content

Commit 25a3a15

Browse files
Sebastian Andrzej SiewiorKAGA-KOKO
authored andcommitted
smp: Remove superfluous cond_func check in smp_call_function_many_cond()
It was requested to remove the cond_func check but the follow up patch was overlooked. Remove it now. Fixes: 67719ef ("smp: Add a smp_cond_func_t argument to smp_call_function_many()") Signed-off-by: Sebastian Andrzej Siewior <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent b0be0ef commit 25a3a15

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/smp.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ static void smp_call_function_many_cond(const struct cpumask *mask,
435435

436436
/* Fastpath: do that cpu by itself. */
437437
if (next_cpu >= nr_cpu_ids) {
438-
if (!cond_func || (cond_func && cond_func(cpu, info)))
438+
if (!cond_func || cond_func(cpu, info))
439439
smp_call_function_single(cpu, func, info, wait);
440440
return;
441441
}

0 commit comments

Comments
 (0)