lkml.org 
[lkml]   [2008]   [Aug]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] Removes extra checking kernel/cpuset.c
Rakib Mullick wrote:
> 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@gmail.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;

The above code no longer exists in latest-git.

> if (dattr->relax_domain_level < c->relax_domain_level)
> dattr->relax_domain_level = c->relax_domain_level;
> return;
> --


\
 
 \ /
  Last update: 2008-08-04 03:01    [W:0.090 / U:0.168 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site