[PATCH 3/7] accel/kvm: Simplify kvm_check_extension_list()

Philippe Mathieu-Daudé
2020-06-23T10:51:22Z

The KVMState* argument is now unused, drop it.

Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com>
---
accel/kvm/kvm-all.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/accel/kvm/kvm-all.c b/accel/kvm/kvm-all.c
index b6b39b0e92..afd14492a0 100644
--- a/accel/kvm/kvm-all.c
+++ b/accel/kvm/kvm-all.c
@@ -1088,7 +1088,7 @@ static int kvm_check_many_ioeventfds(void)
}

static const KVMCapabilityInfo *
-kvm_check_extension_list(KVMState *s, const KVMCapabilityInfo *list)
+kvm_check_extension_list(const KVMCapabilityInfo *list)
{
while (list->name) {
if (!kvm_check_extension(list->value)) {
@@ -2104,10 +2104,10 @@ static int kvm_init(MachineState *ms)
nc++;
}

- missing_cap = kvm_check_extension_list(s, kvm_required_capabilites);
+ missing_cap = kvm_check_extension_list(kvm_required_capabilites);
if (!missing_cap) {
missing_cap =
- kvm_check_extension_list(s, kvm_arch_required_capabilities);
+ kvm_check_extension_list(kvm_arch_required_capabilities);
}
if (missing_cap) {
ret = -EINVAL;
--
2.21.3