[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <tip-0835471697255b415edcefd6b1e25b6c034439f2@git.kernel.org>
Date: Sun, 14 Aug 2011 16:00:47 GMT
From: tip-bot for Hillf Danton <dhillf@...il.com>
To: linux-tip-commits@...r.kernel.org
Cc: linux-kernel@...r.kernel.org, hpa@...or.com, mingo@...hat.com,
dhillf@...il.com, a.p.zijlstra@...llo.nl, rostedt@...dmis.org,
tglx@...utronix.de, mingo@...e.hu
Subject: [tip:sched/core] sched: Remove noop in lowest_flag_domain()
Commit-ID: 0835471697255b415edcefd6b1e25b6c034439f2
Gitweb: http://git.kernel.org/tip/0835471697255b415edcefd6b1e25b6c034439f2
Author: Hillf Danton <dhillf@...il.com>
AuthorDate: Thu, 16 Jun 2011 21:55:19 -0400
Committer: Ingo Molnar <mingo@...e.hu>
CommitDate: Sun, 14 Aug 2011 12:00:46 +0200
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@...il.com>
Signed-off-by: Steven Rostedt <rostedt@...dmis.org>
Signed-off-by: Peter Zijlstra <a.p.zijlstra@...llo.nl>
Link: http://lkml.kernel.org/r/BANLkTimT+Tut-3TshCDm-NiLLXrOznibNA@mail.gmail.com
Signed-off-by: Ingo Molnar <mingo@...e.hu>
---
kernel/sched_fair.c | 2 +-
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;
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists