Skip to content

s390x/cpu_models: Misc cleanup on returned error code and local @err variables

Zhao Liu qemu-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest6 patches 13 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/6target/s390x/cpu_model: Make check_compatibility() return booleantarget/s390x/cpu_models.c+7 -71 reply
2/6target/s390x/cpu_model: Drop local @err in s390_realize_cpu_model()target/s390x/cpu_models.c+1 -32 replies
3/6target/s390x/cpu_models: Make kvm_s390_get_host_cpu_model() return booleantarget/s390x/cpu_models.c target/s390x/cpu_models.h target/s390x/kvm/kvm.c+14 -136 replies
4/6target/s390x/cpu_models: Drop local @err in get_max_cpu_model()target/s390x/cpu_models.c+1 -31 reply
5/6target/s390x/cpu_models: Make kvm_s390_apply_cpu_model() return booleantarget/s390x/cpu_models.h target/s390x/cpu_models_sysemu.c target/s390x/kvm/kvm.c+12 -111 reply
6/6target/s390x/cpu_models_sysemu: Drop local @err in apply_cpu_model()target/s390x/cpu_models_sysemu.c+1 -31 reply

Reviews trailers per patch

5 of 6 patches have a Reviewed-by or Acked-by of their own; the series has one for all of them.

PatchPhilippe Mathieu-DaudéThomas Huth
SeriesR-b
1/6R-b
2/6R-b
3/6
4/6R-b
5/6R-b
6/6R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/6] s390x/cpu_models: Misc cleanup on returned error code and local @err variables

From: Zhao Liu <[email protected]>

Hi list,

This series is the followup of Thomas' suggestion in previous ERRP_GUARD() cleanup[1]. And based on Thomas' thoughts, I tried to clean up as many of the other related places (in s390x/cpu_models.c).

[1]: https://lore.kernel.org/qemu-devel/[email protected]/

Regards,
Zhao
---
Zhao Liu (6):
target/s390x/cpu_model: Make check_compatibility() return boolean target/s390x/cpu_model: Drop local @err in s390_realize_cpu_model() target/s390x/cpu_models: Make kvm_s390_get_host_cpu_model() return
boolean
target/s390x/cpu_models: Drop local @err in get_max_cpu_model() target/s390x/cpu_models: Make kvm_s390_apply_cpu_model() return
boolean
target/s390x/cpu_models_sysemu: Drop local @err in apply_cpu_model()

 target/s390x/cpu_models.c        | 25 ++++++++++---------------
 target/s390x/cpu_models.h        | 10 ++++++----
 target/s390x/cpu_models_sysemu.c |  5 +----
 target/s390x/kvm/kvm.c           | 28 +++++++++++++++-------------
 4 files changed, 32 insertions(+), 36 deletions(-)
Signature · 1 line
2.34.1