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

[Xen-changelog] [xen-unstable] x86: Code style in rdmsr_hypervisor_regs() is not consistent with



# HG changeset patch
# User kfraser@xxxxxxxxxxxxxxxxxxxxx
# Date 1182181924 -3600
# Node ID 342c85cfd00bbdae6a924880a7a9f6899a83f2d5
# Parent  b1eb43f94a3aa913f01ea7456f728ba3ea0ce21a
x86: Code style in rdmsr_hypervisor_regs() is not consistent with
wrmsr_hypervisor_regs(). Sync them up.
Signed-off-by: Shane Wang <shane.wang@xxxxxxxxx>
---
 xen/arch/x86/traps.c |   12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletion(-)

diff -r b1eb43f94a3a -r 342c85cfd00b xen/arch/x86/traps.c
--- a/xen/arch/x86/traps.c      Mon Jun 18 16:48:05 2007 +0100
+++ b/xen/arch/x86/traps.c      Mon Jun 18 16:52:04 2007 +0100
@@ -462,7 +462,17 @@ int rdmsr_hypervisor_regs(
     if ( idx > 0 )
         return 0;
 
-    *eax = *edx = 0;
+    switch ( idx )
+    {
+    case 0:
+    {
+        *eax = *edx = 0;
+        break;
+    }
+    default:
+        BUG();
+    }
+
     return 1;
 }
 

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.