summaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests
diff options
context:
space:
mode:
authorThomas Huth <thuth@redhat.com>2019-05-20 12:55:11 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2019-05-24 21:27:10 +0200
commit12e9612cae0c272e0dabfc570a6d855f07361914 (patch)
tree959e40b8dec4e173743392145af5974b50d94e07 /tools/testing/selftests
parent16ba3ab4e15ca031270deb3cbfd38416c719e291 (diff)
downloadtalos-op-linux-12e9612cae0c272e0dabfc570a6d855f07361914.tar.gz
talos-op-linux-12e9612cae0c272e0dabfc570a6d855f07361914.zip
KVM: selftests: Remove duplicated TEST_ASSERT in hyperv_cpuid.c
The check for entry->index == 0 is done twice. One time should be sufficient. Suggested-by: Vitaly Kuznetsov <vkuznets@redhat.com> Signed-off-by: Thomas Huth <thuth@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'tools/testing/selftests')
-rw-r--r--tools/testing/selftests/kvm/x86_64/hyperv_cpuid.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/tools/testing/selftests/kvm/x86_64/hyperv_cpuid.c b/tools/testing/selftests/kvm/x86_64/hyperv_cpuid.c
index 071fe32dc84b..f72b3043db0e 100644
--- a/tools/testing/selftests/kvm/x86_64/hyperv_cpuid.c
+++ b/tools/testing/selftests/kvm/x86_64/hyperv_cpuid.c
@@ -52,9 +52,6 @@ static void test_hv_cpuid(struct kvm_cpuid2 *hv_cpuid_entries,
TEST_ASSERT(entry->index == 0,
".index field should be zero");
- TEST_ASSERT(entry->index == 0,
- ".index field should be zero");
-
TEST_ASSERT(entry->flags == 0,
".flags field should be zero");
OpenPOWER on IntegriCloud