Re: [PATCH] kho: Convert error handling to immediate return pattern

From: Mike Rapoport

Date: Sun Aug 23 2026 - 03:39:37 EST


Hi,

On Sat, Aug 22, 2026 at 02:41:27PM +0800, LongWei27 wrote:
> From: Long Wei <longwei27@xxxxxxxxxx>
>
> Replace the chained error accumulation (err |= func()) with immediate
> per-step error checking and early return in kho_out_fdt_setup().

You didn't explain *why* are you doing it.

> Signed-off-by: Long Wei <longwei27@xxxxxxxxxx>
> ---
> kernel/liveupdate/kexec_handover.c | 32 +++++++++++++++++++++---------
> 1 file changed, 23 insertions(+), 9 deletions(-)

--
Sincerely yours,
Mike.