diff mbox series

kvm/x86 : Replace BUG_ON(1) with BUG()

Message ID 201910101052488242114@oppo.com (mailing list archive)
State New, archived
Headers show
Series kvm/x86 : Replace BUG_ON(1) with BUG() | expand

Commit Message

彭浩(Richard) Oct. 10, 2019, 2:52 a.m. UTC
Signed-off-by: Peng Hao <richard.peng@oppo.com>
---
 arch/x86/kvm/vmx/nested.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

-- 
2.7.4
diff mbox series

Patch

diff --git a/arch/x86/kvm/vmx/nested.c b/arch/x86/kvm/vmx/nested.c
index e76eb4f..d0e6c40 100644
--- a/arch/x86/kvm/vmx/nested.c
+++ b/arch/x86/kvm/vmx/nested.c
@@ -4945,8 +4945,7 @@  static int handle_invept(struct kvm_vcpu *vcpu)
 	 */
 		break;
 	default:
-		BUG_ON(1);
-		break;
+		BUG();
 	}
 
 	return nested_vmx_succeed(vcpu);