Repository navigation
Commit cf6c26e
KVM: x86: Code style cleanup in kvm_arch_dev_ioctl()
In kvm_arch_dev_ioctl(), the brackets of case KVM_X86_GET_MCE_CAP_SUPPORTED
accidently encapsulates case KVM_GET_MSR_FEATURE_INDEX_LIST and case
KVM_GET_MSRS. It doesn't affect functionality but it's misleading.
Remove unnecessary brackets and opportunistically add a "break" in the
default path.
Suggested-by: Sean Christopherson <sean.j.christopherson@intel.com>
Signed-off-by: Xiaoyao Li <xiaoyao.li@intel.com>
Reviewed-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>1 parent 2b110b6 commit cf6c26e
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3488 | 3488 | | |
3489 | 3489 | | |
3490 | 3490 | | |
3491 | | - | |
| 3491 | + | |
3492 | 3492 | | |
3493 | 3493 | | |
3494 | 3494 | | |
| |||
3520 | 3520 | | |
3521 | 3521 | | |
3522 | 3522 | | |
3523 | | - | |
3524 | 3523 | | |
3525 | 3524 | | |
| 3525 | + | |
3526 | 3526 | | |
3527 | 3527 | | |
3528 | 3528 | | |
| |||
0 commit comments