summary refs log tree commit diff stats
path: root/scripts/qapi/schema.py
diff options
context:
space:
mode:
authorZhao Liu <zhao1.liu@intel.com>2024-04-25 11:12:29 +0800
committerThomas Huth <thuth@redhat.com>2024-04-30 06:21:47 +0200
commit47ab3b21374627419cd400141cacd534b9281f7b (patch)
tree1cc821d1e981b6731cae4e89c2e5ae83aabb479e /scripts/qapi/schema.py
parent9c2df9c5e849ce2c24a6518a56e6e44371ff541e (diff)
downloadfocaccia-qemu-47ab3b21374627419cd400141cacd534b9281f7b.tar.gz
focaccia-qemu-47ab3b21374627419cd400141cacd534b9281f7b.zip
target/s390x/cpu_models: Make kvm_s390_get_host_cpu_model() return boolean
As error.h suggested, the best practice for callee is to return
something to indicate success / failure.

So make kvm_s390_get_host_cpu_model() return boolean and check the
returned boolean in get_max_cpu_model() instead of accessing @err.

Signed-off-by: Zhao Liu <zhao1.liu@intel.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-ID: <20240425031232.1586401-5-zhao1.liu@intel.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
Diffstat (limited to 'scripts/qapi/schema.py')
0 files changed, 0 insertions, 0 deletions