From patchwork Mon Jun 10 10:57:18 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Viresh Kumar X-Patchwork-Id: 17715 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yh0-f71.google.com (mail-yh0-f71.google.com [209.85.213.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 09B182397B for ; Mon, 10 Jun 2013 10:59:18 +0000 (UTC) Received: by mail-yh0-f71.google.com with SMTP id f73sf1261050yha.10 for ; Mon, 10 Jun 2013 03:59:17 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-beenthere:x-forwarded-to:x-forwarded-for :delivered-to:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references:in-reply-to:references:x-gm-message-state :x-original-sender:x-original-authentication-results:precedence :mailing-list:list-id:x-google-group-id:list-post:list-help :list-archive:list-unsubscribe; bh=ZiZQ532hEHqHAMS0/h+WlTqwg7Zi89RB5jU+qhULM+0=; b=ltTokofhovtb7ce6ONiwxqkW85ITvsz3U/16WE6PWgnRaTFMyRKgewPlOJm7TSs1SP Vu+NLcxSD/igibmy3AA8EIuZ6VPZtyQ0smg0UdQQzDx/CTRZto90AF906OwFRj0IP/7+ ATsP19CQ9NJzfrNgD66/Vy1cleXtn30c7QcK6H2/zQYgODDb17f2IQR2wqgMg5njMxFO KWyJoFupLICfJOxY1kYEJ8lDjW2SsxZS/ApVzoajVxxMb0V/lWYDe6XAgc/QbOOsnY2Z eteZ1/PjvXDzL/luEGsGC4CguTXC2lMf+5PcxU3ITUU3npMIK1UWfhvSD95/JDWgSBFy xCDA== X-Received: by 10.224.53.198 with SMTP id n6mr8232414qag.2.1370861957615; Mon, 10 Jun 2013 03:59:17 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.14.103 with SMTP id o7ls2685348qec.9.gmail; Mon, 10 Jun 2013 03:59:17 -0700 (PDT) X-Received: by 10.58.34.69 with SMTP id x5mr4411393vei.11.1370861957408; Mon, 10 Jun 2013 03:59:17 -0700 (PDT) Received: from mail-vc0-f175.google.com (mail-vc0-f175.google.com [209.85.220.175]) by mx.google.com with ESMTPS id y14si4651163vcn.9.2013.06.10.03.59.17 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 10 Jun 2013 03:59:17 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.175 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.175; Received: by mail-vc0-f175.google.com with SMTP id hr11so4223056vcb.6 for ; Mon, 10 Jun 2013 03:59:17 -0700 (PDT) X-Received: by 10.52.53.36 with SMTP id y4mr4310791vdo.51.1370861957286; Mon, 10 Jun 2013 03:59:17 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.221.10.206 with SMTP id pb14csp63404vcb; Mon, 10 Jun 2013 03:59:16 -0700 (PDT) X-Received: by 10.68.213.231 with SMTP id nv7mr9592683pbc.70.1370861956500; Mon, 10 Jun 2013 03:59:16 -0700 (PDT) Received: from mail-pb0-x22a.google.com (mail-pb0-x22a.google.com [2607:f8b0:400e:c01::22a]) by mx.google.com with ESMTPS id lb5si4619272pbc.30.2013.06.10.03.59.16 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 10 Jun 2013 03:59:16 -0700 (PDT) Received-SPF: neutral (google.com: 2607:f8b0:400e:c01::22a is neither permitted nor denied by best guess record for domain of viresh.kumar@linaro.org) client-ip=2607:f8b0:400e:c01::22a; Received: by mail-pb0-f42.google.com with SMTP id un1so2985089pbc.15 for ; Mon, 10 Jun 2013 03:59:16 -0700 (PDT) X-Received: by 10.68.213.101 with SMTP id nr5mr9403348pbc.22.1370861955997; Mon, 10 Jun 2013 03:59:15 -0700 (PDT) Received: from localhost ([223.228.11.221]) by mx.google.com with ESMTPSA id qh4sm15172174pac.8.2013.06.10.03.58.47 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Mon, 10 Jun 2013 03:59:15 -0700 (PDT) From: Viresh Kumar To: mingo@redhat.com, peterz@infradead.org Cc: linaro-kernel@lists.linaro.org, patches@linaro.org, linux-kernel@vger.kernel.org, robin.randhawa@arm.com, Steve.Bannister@arm.com, Liviu.Dudau@arm.com, charles.garcia-tobin@arm.com, arvind.chauhan@arm.com, Viresh Kumar Subject: [PATCH 1/3] sched: don't initialize alloc_state in build_sched_domains Date: Mon, 10 Jun 2013 16:27:18 +0530 Message-Id: X-Mailer: git-send-email 1.7.12.rc2.18.g61b472e In-Reply-To: References: In-Reply-To: References: X-Gm-Message-State: ALoCoQmgRlLJcv16ZB/xTysWvrlUaj6IaLZMWvXu1FKqOLCTl6IFaTZZO09jIlISIgRIPZkXSqPw X-Original-Sender: viresh.kumar@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.175 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , alloc_state will be overwritten by __visit_domain_allocation_hell() and so we don't actually need to initialize alloc_state. Signed-off-by: Viresh Kumar --- kernel/sched/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/sched/core.c b/kernel/sched/core.c index 0623703..5faa748 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c @@ -5956,7 +5956,7 @@ struct sched_domain *build_sched_domain(struct sched_domain_topology_level *tl, static int build_sched_domains(const struct cpumask *cpu_map, struct sched_domain_attr *attr) { - enum s_alloc alloc_state = sa_none; + enum s_alloc alloc_state; struct sched_domain *sd; struct s_data d; int i, ret = -ENOMEM;