Skip to content

Commit 0e6d2a6

Browse files
msrasmussenIngo Molnar
authored andcommitted
sched/core: Remove unnecessary NULL-pointer check
Checking if the sched_domain pointer returned by sd_init() is NULL seems pointless as sd_init() neither checks if it is valid to begin with nor set it to NULL. Signed-off-by: Morten Rasmussen <[email protected]> Signed-off-by: Peter Zijlstra (Intel) <[email protected]> Cc: Linus Torvalds <[email protected]> Cc: Mike Galbraith <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Thomas Gleixner <[email protected]> Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Cc: [email protected] Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Ingo Molnar <[email protected]>
1 parent 94f438c commit 0e6d2a6

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

kernel/sched/core.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6854,8 +6854,6 @@ struct sched_domain *build_sched_domain(struct sched_domain_topology_level *tl,
68546854
struct sched_domain *child, int cpu)
68556855
{
68566856
struct sched_domain *sd = sd_init(tl, cpu);
6857-
if (!sd)
6858-
return child;
68596857

68606858
cpumask_and(sched_domain_span(sd), cpu_map, tl->mask(cpu));
68616859
if (child) {

0 commit comments

Comments
 (0)