Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/xen/x86 Remove temporary variable definition that i...



details:   https://anonhg.NetBSD.org/src/rev/afc0d4afa6ee
branches:  trunk
changeset: 772304:afc0d4afa6ee
user:      cherry <cherry%NetBSD.org@localhost>
date:      Wed Dec 28 18:59:21 2011 +0000

description:
Remove temporary variable definition that is unused in non DIAGNOSTIC builds.

diffstat:

 sys/arch/xen/x86/xen_ipi.c |  12 +++++-------
 1 files changed, 5 insertions(+), 7 deletions(-)

diffs (35 lines):

diff -r 3454e25c0c48 -r afc0d4afa6ee sys/arch/xen/x86/xen_ipi.c
--- a/sys/arch/xen/x86/xen_ipi.c        Wed Dec 28 18:56:38 2011 +0000
+++ b/sys/arch/xen/x86/xen_ipi.c        Wed Dec 28 18:59:21 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: xen_ipi.c,v 1.7 2011/12/07 15:47:43 cegger Exp $ */
+/* $NetBSD: xen_ipi.c,v 1.8 2011/12/28 18:59:21 cherry Exp $ */
 
 /*-
  * Copyright (c) 2011 The NetBSD Foundation, Inc.
@@ -33,10 +33,10 @@
 
 /* 
  * Based on: x86/ipi.c
- * __KERNEL_RCSID(0, "$NetBSD: xen_ipi.c,v 1.7 2011/12/07 15:47:43 cegger Exp $"); 
+ * __KERNEL_RCSID(0, "$NetBSD: xen_ipi.c,v 1.8 2011/12/28 18:59:21 cherry Exp $"); 
  */
 
-__KERNEL_RCSID(0, "$NetBSD: xen_ipi.c,v 1.7 2011/12/07 15:47:43 cegger Exp $");
+__KERNEL_RCSID(0, "$NetBSD: xen_ipi.c,v 1.8 2011/12/28 18:59:21 cherry Exp $");
 
 #include <sys/types.h>
 
@@ -304,10 +304,8 @@
 {
        KASSERT(ci != NULL);
        KASSERT(intrf != NULL);
-
-       volatile struct vcpu_info *vci = ci->ci_vcpu;
+       KASSERT(ci == curcpu());
+       KASSERT(!ci->ci_vcpu->evtchn_upcall_mask);
 
-       KASSERT(ci == curcpu());
-       KASSERT(!vci->evtchn_upcall_mask);
        hypervisor_force_callback();
 }



Home | Main Index | Thread Index | Old Index