summaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorHillf Danton <dhillf@gmail.com>2011-06-16 21:55:19 -0400
committerIngo Molnar <mingo@elte.hu>2011-08-14 12:00:46 +0200
commit0835471697255b415edcefd6b1e25b6c034439f2 (patch)
tree921d1c42bf9b6656135a1126ee8723287ef4bfa1 /kernel
parent67d955383ab2ef8866c494c14156a4f3d29e441c (diff)
downloadop-kernel-dev-0835471697255b415edcefd6b1e25b6c034439f2.zip
op-kernel-dev-0835471697255b415edcefd6b1e25b6c034439f2.tar.gz
sched: Remove noop in lowest_flag_domain()
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>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/sched_fair.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/sched_fair.c b/kernel/sched_fair.c
index 241fc86..f4b732a 100644
--- a/kernel/sched_fair.c
+++ b/kernel/sched_fair.c
@@ -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;
OpenPOWER on IntegriCloud