[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <BANLkTimT+Tut-3TshCDm-NiLLXrOznibNA@mail.gmail.com>
Date: Wed, 25 May 2011 20:42:59 +0800
From: Hillf Danton <dhillf@...il.com>
To: LKML <linux-kernel@...r.kernel.org>
Cc: Ingo Molnar <mingo@...e.hu>, Peter Zijlstra <peterz@...radead.org>,
Steven Rostedt <rostedt@...dmis.org>,
Mike Galbraith <efault@....de>,
Yong Zhang <yong.zhang0@...il.com>
Subject: [PATCH] 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>
---
--- 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;
--
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