OSDN Git Service

KVM: selftests: Remove dynamic memory allocation for stats header
authorBen Gardon <bgardon@google.com>
Mon, 13 Jun 2022 21:25:14 +0000 (21:25 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Fri, 24 Jun 2022 08:51:42 +0000 (04:51 -0400)
commitfcd48a213f0ac45c2187b09e19d4849e14cb59f8
tree80e7dedde3aba1695ae9f70bc010779b3eb4fd20
parent2325d4dd7321cd569f996c5d091f4f83efb25693
KVM: selftests: Remove dynamic memory allocation for stats header

There's no need to allocate dynamic memory for the stats header since
its size is known at compile time.

Reviewed-by: David Matlack <dmatlack@google.com>
Reviewed-by: Peter Xu <peterx@redhat.com>
Signed-off-by: Ben Gardon <bgardon@google.com>
Message-Id: <20220613212523.3436117-2-bgardon@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
tools/testing/selftests/kvm/kvm_binary_stats_test.c