Skip to content

Commit

Permalink
sched: Remove noop in lowest_flag_domain()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Hillf Danton authored and Ingo Molnar committed Aug 14, 2011
1 parent 67d9553 commit 0835471
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion kernel/sched_fair.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 0835471

Please sign in to comment.