WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] Simplify boot_vcpu() implementation.

# HG changeset patch
# User kaf24@xxxxxxxxxxxxxxxxxxxx
# Node ID 2eb868d02f0f8ee0964d6322c6585be6ce0de123
# Parent  a20a9ec0e51095738b175eb146e41592caf3b51f
Simplify boot_vcpu() implementation.

Signed-off-by: Tony Breeds <tony@xxxxxxxxxxxxxxxxxx>

diff -r a20a9ec0e510 -r 2eb868d02f0f xen/common/domain.c
--- a/xen/common/domain.c       Mon Nov 28 11:05:07 2005
+++ b/xen/common/domain.c       Mon Nov 28 12:39:22 2005
@@ -376,14 +376,10 @@
 int boot_vcpu(struct domain *d, int vcpuid, struct vcpu_guest_context *ctxt) 
 {
     struct vcpu *v = d->vcpu[vcpuid];
-    int rc;
 
     BUG_ON(test_bit(_VCPUF_initialised, &v->vcpu_flags));
 
-    if ( (rc = arch_set_info_guest(v, ctxt)) != 0 )
-        return rc;
-
-    return rc;
+    return arch_set_info_guest(v, ctxt);
 }
 
 long do_vcpu_op(int cmd, int vcpuid, void *arg)

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] Simplify boot_vcpu() implementation., Xen patchbot -unstable <=