]> xenbits.xensource.com Git - people/julieng/xen-unstable.git/commitdiff
common/domain: avoid to shadow the variable "d" in do_vcpu_op
authorJulien Grall <julien.grall@citrix.com>
Thu, 29 Oct 2015 11:19:23 +0000 (12:19 +0100)
committerJan Beulich <jbeulich@suse.com>
Thu, 29 Oct 2015 11:19:23 +0000 (12:19 +0100)
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 <julien.grall@citrix.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/common/domain.c

index b0378aa98b75b92fdf37c1f4d8b0f36cfb305f62..b95f29a015d8a1b02a74783741cc84e1f70f4e7e 100644 (file)
@@ -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;