projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
16ba3ab
)
KVM: selftests: Remove duplicated TEST_ASSERT in hyperv_cpuid.c
author
Thomas Huth
<thuth@redhat.com>
Mon, 20 May 2019 10:55:11 +0000
(12:55 +0200)
committer
Paolo Bonzini
<pbonzini@redhat.com>
Fri, 24 May 2019 19:27:10 +0000
(21:27 +0200)
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
patch
|
blob
|
history
diff --git
a/tools/testing/selftests/kvm/x86_64/hyperv_cpuid.c
b/tools/testing/selftests/kvm/x86_64/hyperv_cpuid.c
index 071fe32dc84b8c15c4b45fd07084bfdbecc51f8a..f72b3043db0ebc99b8934fde19a61c5a60e42748 100644
(file)
--- 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");