direct-io.hg

changeset 15375:342c85cfd00b

x86: Code style in rdmsr_hypervisor_regs() is not consistent with
wrmsr_hypervisor_regs(). Sync them up.
Signed-off-by: Shane Wang <shane.wang@intel.com>
author kfraser@localhost.localdomain
date Mon Jun 18 16:52:04 2007 +0100 (2007-06-18)
parents b1eb43f94a3a
children c3f280acf41a
files xen/arch/x86/traps.c
line diff
     1.1 --- a/xen/arch/x86/traps.c	Mon Jun 18 16:48:05 2007 +0100
     1.2 +++ b/xen/arch/x86/traps.c	Mon Jun 18 16:52:04 2007 +0100
     1.3 @@ -462,7 +462,17 @@ int rdmsr_hypervisor_regs(
     1.4      if ( idx > 0 )
     1.5          return 0;
     1.6  
     1.7 -    *eax = *edx = 0;
     1.8 +    switch ( idx )
     1.9 +    {
    1.10 +    case 0:
    1.11 +    {
    1.12 +        *eax = *edx = 0;
    1.13 +        break;
    1.14 +    }
    1.15 +    default:
    1.16 +        BUG();
    1.17 +    }
    1.18 +
    1.19      return 1;
    1.20  }
    1.21