projects
/
xen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b261366
)
common/domain: avoid to shadow the variable "d" in do_vcpu_op
author
Julien Grall
<julien.grall@citrix.com>
Thu, 29 Oct 2015 11:19:23 +0000
(12:19 +0100)
committer
Jan 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
patch
|
blob
|
history
diff --git
a/xen/common/domain.c
b/xen/common/domain.c
index b0378aa98b75b92fdf37c1f4d8b0f36cfb305f62..b95f29a015d8a1b02a74783741cc84e1f70f4e7e 100644
(file)
--- 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;