qemu-s390x
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 1/6] target/s390x/cpu_model: Make check_compatibility() retur


From: Thomas Huth
Subject: Re: [PATCH 1/6] target/s390x/cpu_model: Make check_compatibility() return boolean
Date: Fri, 19 Apr 2024 09:30:18 +0200
User-agent: Mozilla Thunderbird

On 19/04/2024 08.57, Zhao Liu wrote:
From: Zhao Liu <zhao1.liu@intel.com>

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>
---
  target/s390x/cpu_models.c | 14 +++++++-------
  1 file changed, 7 insertions(+), 7 deletions(-)

Reviewed-by: Thomas Huth <thuth@redhat.com>





reply via email to

[Prev in Thread] Current Thread [Next in Thread]