public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] sched: remove noop in lowest_flag_domain()
@ 2011-05-25 12:42 Hillf Danton
  2011-08-14 16:00 ` [tip:sched/core] sched: Remove " tip-bot for Hillf Danton
  0 siblings, 1 reply; 2+ messages in thread
From: Hillf Danton @ 2011-05-25 12:42 UTC (permalink / raw)
  To: LKML
  Cc: Ingo Molnar, Peter Zijlstra, Steven Rostedt, Mike Galbraith,
	Yong Zhang

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>
---

--- tip-git/kernel/sched_fair.c	Sat May 14 15:21:56 2011
+++ sched_fair.c	Wed May 25 20:15:34 2011
@@ -3652,7 +3652,7 @@ static inline struct sched_domain *lowes
 	struct sched_domain *sd;

 	for_each_domain(cpu, sd)
-		if (sd && (sd->flags & flag))
+		if (sd->flags & flag)
 			break;

 	return sd;

^ permalink raw reply	[flat|nested] 2+ messages in thread

* [tip:sched/core] sched: Remove noop in lowest_flag_domain()
  2011-05-25 12:42 [PATCH] sched: remove noop in lowest_flag_domain() Hillf Danton
@ 2011-08-14 16:00 ` tip-bot for Hillf Danton
  0 siblings, 0 replies; 2+ messages in thread
From: tip-bot for Hillf Danton @ 2011-08-14 16:00 UTC (permalink / raw)
  To: linux-tip-commits
  Cc: linux-kernel, hpa, mingo, dhillf, a.p.zijlstra, rostedt, tglx,
	mingo

Commit-ID:  0835471697255b415edcefd6b1e25b6c034439f2
Gitweb:     http://git.kernel.org/tip/0835471697255b415edcefd6b1e25b6c034439f2
Author:     Hillf Danton <dhillf@gmail.com>
AuthorDate: Thu, 16 Jun 2011 21:55:19 -0400
Committer:  Ingo Molnar <mingo@elte.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@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 |    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;

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-08-14 16:01 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-25 12:42 [PATCH] sched: remove noop in lowest_flag_domain() Hillf Danton
2011-08-14 16:00 ` [tip:sched/core] sched: Remove " tip-bot for Hillf Danton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox