Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757222AbYHBQHm (ORCPT ); Sat, 2 Aug 2008 12:07:42 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753352AbYHBQHf (ORCPT ); Sat, 2 Aug 2008 12:07:35 -0400 Received: from fg-out-1718.google.com ([72.14.220.152]:46760 "EHLO fg-out-1718.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752783AbYHBQHe (ORCPT ); Sat, 2 Aug 2008 12:07:34 -0400 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:mime-version:content-type :content-transfer-encoding:content-disposition; b=H/4bHTiWocuoumJju5QeYpbiOOuanGwJMaeVrYOnNi4bXZ4RbhaKG0ooiqastuKeFt /Df4IbnuDhETUZNhQbUREdxP+pikWOu6TMpaKKSCx7JB6xTyBx9vncVom48vyXbks1Bs XyzpIwSuT7UaQhOCYWTuTDLC6D5Mx3cP5xD3U= Message-ID: Date: Sat, 2 Aug 2008 22:07:32 +0600 From: "Rakib Mullick" To: pj@sgi.com, menage@google.com Subject: [PATCH] Removes extra checking kernel/cpuset.c Cc: linux-kernel@vger.kernel.org MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 952 Lines: 22 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; 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@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/