KVM: vmx: remove unreachable statement in vmx_get_msr_feature()
authorMiaohe Lin <linmiaohe@huawei.com>
Thu, 5 Dec 2019 02:24:38 +0000 (10:24 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 8 Jan 2020 16:33:12 +0000 (17:33 +0100)
We have no way to reach the final statement, remove it.
Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx/vmx.c

index e3394c8..5fb7a16 100644 (file)
@@ -1773,8 +1773,6 @@ static int vmx_get_msr_feature(struct kvm_msr_entry *msr)
        default:
                return 1;
        }
-
-       return 0;
 }
 
 /*