summaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm/x86.c
diff options
context:
space:
mode:
authorLike Xu <likexu@tencent.com>2023-08-07 17:42:43 +0800
committerSean Christopherson <seanjc@google.com>2023-08-17 11:28:00 -0700
commit765da7fe0e76ed41eea9514433f4ca8cdb5312b1 (patch)
treecc8eb00ba09ac8f490966f691caa2cd2155da69f /arch/x86/kvm/x86.c
parent223f93d4d88aedc02bdcc92b3734e76f707812f3 (diff)
downloadlinux-765da7fe0e76ed41eea9514433f4ca8cdb5312b1.tar.gz
linux-765da7fe0e76ed41eea9514433f4ca8cdb5312b1.tar.bz2
linux-765da7fe0e76ed41eea9514433f4ca8cdb5312b1.zip
KVM: x86: Remove break statements that will never be executed
Fix compiler warnings when compiling KVM with [-Wunreachable-code-break]. No functional change intended. Cc: Vitaly Kuznetsov <vkuznets@redhat.com> Signed-off-by: Like Xu <likexu@tencent.com> Link: https://lore.kernel.org/r/20230807094243.32516-1-likexu@tencent.com Signed-off-by: Sean Christopherson <seanjc@google.com>
Diffstat (limited to 'arch/x86/kvm/x86.c')
-rw-r--r--arch/x86/kvm/x86.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c
index 80ec33fc823b..5ff77a70b382 100644
--- a/arch/x86/kvm/x86.c
+++ b/arch/x86/kvm/x86.c
@@ -4646,7 +4646,6 @@ static int kvm_x86_dev_get_attr(struct kvm_device_attr *attr)
return 0;
default:
return -ENXIO;
- break;
}
}