From: Julien Grall Date: Thu, 29 Oct 2015 11:19:23 +0000 (+0100) Subject: common/domain: avoid to shadow the variable "d" in do_vcpu_op X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=f6f08decb5f24ac299ab2ce23e2164ed8b13ca50;p=people%2Froyger%2Fxen.git common/domain: avoid to shadow the variable "d" in do_vcpu_op 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 Reviewed-by: Andrew Cooper --- diff --git a/xen/common/domain.c b/xen/common/domain.c index b0378aa98b..b95f29a015 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;