Skip to content

Commit e080e53

Browse files
MiaoheLinbonzini
authored andcommitted
KVM: x86: eliminate some unreachable code
These code are unreachable, remove them. Signed-off-by: Miaohe Lin <linmiaohe@huawei.com> Reviewed-by: Krish Sadhukhan <krish.sadhukhan@oracle.com> Reviewed-by: Vitaly Kuznetsov <vkuznets@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
1 parent e630269 commit e080e53

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

arch/x86/kvm/vmx/vmx.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4550,7 +4550,6 @@ static bool rmode_exception(struct kvm_vcpu *vcpu, int vec)
45504550
case GP_VECTOR:
45514551
case MF_VECTOR:
45524552
return true;
4553-
break;
45544553
}
45554554
return false;
45564555
}

arch/x86/kvm/x86.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3077,7 +3077,6 @@ int kvm_get_msr_common(struct kvm_vcpu *vcpu, struct msr_data *msr_info)
30773077
break;
30783078
case APIC_BASE_MSR ... APIC_BASE_MSR + 0x3ff:
30793079
return kvm_x2apic_msr_read(vcpu, msr_info->index, &msr_info->data);
3080-
break;
30813080
case MSR_IA32_TSCDEADLINE:
30823081
msr_info->data = kvm_get_lapic_tscdeadline_msr(vcpu);
30833082
break;
@@ -3160,7 +3159,6 @@ int kvm_get_msr_common(struct kvm_vcpu *vcpu, struct msr_data *msr_info)
31603159
return kvm_hv_get_msr_common(vcpu,
31613160
msr_info->index, &msr_info->data,
31623161
msr_info->host_initiated);
3163-
break;
31643162
case MSR_IA32_BBL_CR_CTL3:
31653163
/* This legacy MSR exists but isn't fully documented in current
31663164
* silicon. It is however accessed by winxp in very narrow
@@ -8484,7 +8482,6 @@ static inline int vcpu_block(struct kvm *kvm, struct kvm_vcpu *vcpu)
84848482
break;
84858483
default:
84868484
return -EINTR;
8487-
break;
84888485
}
84898486
return 1;
84908487
}

0 commit comments

Comments
 (0)