Skip to content

Commit

Permalink
KVM: selftests: Remove duplicated TEST_ASSERT in hyperv_cpuid.c
Browse files Browse the repository at this point in the history
The check for entry->index == 0 is done twice. One time should
be sufficient.

Suggested-by: Vitaly Kuznetsov <[email protected]>
Signed-off-by: Thomas Huth <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
  • Loading branch information
huth authored and bonzini committed May 24, 2019
1 parent 16ba3ab commit 12e9612
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions tools/testing/selftests/kvm/x86_64/hyperv_cpuid.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");

Expand Down

0 comments on commit 12e9612

Please sign in to comment.