From: "Jan Beulich" Subject: Re: [PATCH 4/6] xen/common: memory: Avoid to shadow the variable "d" in do_memory_op Date: Tue, 27 Oct 2015 10:25:33 -0600 Message-ID: <562FB38D02000078000AF460@prv-mh.provo.novell.com> References: <1445960359-17217-1-git-send-email-julien.grall@citrix.com> <1445960359-17217-5-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 1Zr745-00005b-Vo for xen-devel@lists.xenproject.org; Tue, 27 Oct 2015 16:25:38 +0000 In-Reply-To: <1445960359-17217-5-git-send-email-julien.grall@citrix.com> Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Julien Grall Cc: xen-devel@lists.xenproject.org, Keir Fraser , Ian Campbell , Tim Deegan List-Id: xen-devel@lists.xenproject.org >>> On 27.10.15 at 16:39, wrote: > The variable "d" is declared multiple times within do_memory_op. > > The subsequent declaration are not useful because the top one is never > used. So drop them. The patch is correct, but the description is slightly off: The top one is used in other case blocks. (I should have said this on the other one too: No reason to re-submit.) Jan