[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <b9df5fa10808020907g774a88ddj8111a5ffcbe62eb5@mail.gmail.com>
Date: Sat, 2 Aug 2008 22:07:32 +0600
From: "Rakib Mullick" <rakib.mullick@...il.com>
To: pj@....com, menage@...gle.com
Cc: linux-kernel@...r.kernel.org
Subject: [PATCH] Removes extra checking kernel/cpuset.c
Hello guys, in 'update_domain_attr' function we can just return if
couldn't update domain attribute , rather then checking dattr and
again checking relax_domain_level of dattr , if not then return.
Signed-off-by: Md.Rakib H. Mullick (rakib.mullick@...il.com)
--- linux-2.6.26-rc9.orig/kernel/cpuset.c 2008-08-01 08:38:41.000000000 +0600
+++ linux-2.6.26-rc9/kernel/cpuset.c 2008-08-02 20:37:06.000000000 +0600
@@ -490,8 +490,6 @@ static int cpusets_overlap(struct cpuset
static void
update_domain_attr(struct sched_domain_attr *dattr, struct cpuset *c)
{
- if (!dattr)
- return;
if (dattr->relax_domain_level < c->relax_domain_level)
dattr->relax_domain_level = c->relax_domain_level;
return;
--
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