From: Julien Grall Subject: [PATCH 2/6] xen/common: domain: Avoid to shadow the variable "d" in do_vcpu_op Date: Tue, 27 Oct 2015 15:39:15 +0000 Message-ID: <1445960359-17217-3-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 1Zr6Mi-0002Ko-Pm 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 , Tim Deegan , Keir Fraser , Ian Campbell , Jan Beulich List-Id: xen-devel@lists.xenproject.org The variable "d" is defined twice. However, the second one is not necessary as the vCPU as already been deduced from the first "d". Signed-off-by: Julien Grall --- Cc: Ian Campbell Cc: Jan Beulich Cc: Keir Fraser Cc: Tim Deegan --- xen/common/domain.c | 1 - 1 file changed, 1 deletion(-) diff --git a/xen/common/domain.c b/xen/common/domain.c index b0378aa..b95f29a 100644 --- a/xen/common/domain.c +++ b/xen/common/domain.c @@ -1329,7 +1329,6 @@ long do_vcpu_op(int cmd, unsigned int vcpuid, XEN_GUEST_HANDLE_PARAM(void) arg) case VCPUOP_register_vcpu_info: { - struct domain *d = v->domain; struct vcpu_register_vcpu_info info; rc = -EFAULT; -- 2.1.4