Skip to content

Commit f479fee

Browse files
EricccTaiwanhtejun
authored andcommitted
sched_ext: Return NULL in llc_span
Use NULL instead of 0 to signal no LLC domain, matching numa_span() and the function comment. No functional change. Signed-off-by: Cheng-Yang Chou <[email protected]> Signed-off-by: Tejun Heo <[email protected]>
1 parent 545b343 commit f479fee

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/sched/ext_idle.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ static struct cpumask *llc_span(s32 cpu)
249249

250250
sd = rcu_dereference(per_cpu(sd_llc, cpu));
251251
if (!sd)
252-
return 0;
252+
return NULL;
253253

254254
return sched_domain_span(sd);
255255
}

0 commit comments

Comments
 (0)