]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: selftests: Remove duplicated TEST_ASSERT in hyperv_cpuid.c
authorThomas Huth <thuth@redhat.com>
Mon, 20 May 2019 10:55:11 +0000 (12:55 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 24 May 2019 19:27:10 +0000 (21:27 +0200)
commitef6c86ade06c13286a28ccff1bf396a9dd24e3fd
tree959e40b8dec4e173743392145af5974b50d94e07
parent9456d224d8e4a70a170b7e31c4f4b9f67778850b
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>
tools/testing/selftests/kvm/x86_64/hyperv_cpuid.c