From: Julien Grall Subject: [PATCH 5/6] xen/common: sched: Avoid to shadow the variable "cur" in runq_tickle Date: Tue, 27 Oct 2015 15:39:18 +0000 Message-ID: <1445960359-17217-6-git-send-email-julien.grall@citrix.com> References: <1445960359-17217-1-git-send-email-julien.grall@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1Zr6Mh-0002Ka-Sv for xen-devel@lists.xenproject.org; Tue, 27 Oct 2015 15:40:48 +0000 In-Reply-To: <1445960359-17217-1-git-send-email-julien.grall@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xenproject.org Cc: Julien Grall , George Dunlap , Dario Faggioli List-Id: xen-devel@lists.xenproject.org The variable "cur" is declared twice within "cur". However the top declaration could be re-used avoiding re-declaring another time the variable. Signed-off-by: Julien Grall --- Cc: George Dunlap Cc: Dario Faggioli --- xen/common/sched_credit2.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/xen/common/sched_credit2.c b/xen/common/sched_credit2.c index 6695729..fc51a75 100644 --- a/xen/common/sched_credit2.c +++ b/xen/common/sched_credit2.c @@ -519,8 +519,6 @@ runq_tickle(const struct scheduler *ops, unsigned int cpu, struct csched2_vcpu * for_each_cpu(i, &mask) { - struct csched2_vcpu * cur; - /* Already looked at this one above */ if ( i == cpu ) continue; -- 2.1.4