target/s390x/cpu_model: Make check_compatibility() return boolean
authorZhao Liu <zhao1.liu@intel.com>
Thu, 25 Apr 2024 03:12:26 +0000 (11:12 +0800)
committerThomas Huth <thuth@redhat.com>
Tue, 30 Apr 2024 04:21:46 +0000 (06:21 +0200)
commit7c0c099a88fd45b3598118dd7dce9ba64a1d41b7
tree49ee9f2299f31b5cdba47fc792d26d495a933725
parent5fee33d97a7f2e95716417bd164f2f5264acd976
target/s390x/cpu_model: Make check_compatibility() return boolean

As error.h suggested, the best practice for callee is to return
something to indicate success / failure.

With returned boolean, there's no need to check @err.

Suggested-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Zhao Liu <zhao1.liu@intel.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-ID: <20240425031232.1586401-2-zhao1.liu@intel.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
target/s390x/cpu_models.c