sched: Remove noop in lowest_flag_domain()
authorHillf Danton <dhillf@gmail.com>
Fri, 17 Jun 2011 01:55:19 +0000 (21:55 -0400)
committerIngo Molnar <mingo@elte.hu>
Sun, 14 Aug 2011 10:00:46 +0000 (12:00 +0200)
Checking for the validity of sd is removed, since it is already
checked by the for_each_domain macro.

Signed-off-by: Hillf Danton <dhillf@gmail.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/BANLkTimT+Tut-3TshCDm-NiLLXrOznibNA@mail.gmail.com
Signed-off-by: Ingo Molnar <mingo@elte.hu>
kernel/sched_fair.c

index 241fc86..f4b732a 100644 (file)
@@ -3660,7 +3660,7 @@ static inline struct sched_domain *lowest_flag_domain(int cpu, int flag)
        struct sched_domain *sd;
 
        for_each_domain(cpu, sd)
-               if (sd && (sd->flags & flag))
+               if (sd->flags & flag)
                        break;
 
        return sd;