Re: [PATCH RESEND] riscv: kexec: use min to simplify riscv_kexec_elf_load
From: Breno Leitao
Date: Wed Jun 03 2026 - 05:37:15 EST
On Wed, Jun 03, 2026 at 12:47:22AM +0200, Thorsten Blum wrote:
> Use min() to replace the open-coded version and assign the result
> directly to kbuf.bufsz. Drop the now-unused local size variable.
>
> Signed-off-by: Thorsten Blum <thorsten.blum@xxxxxxxxx>
Reviewed-by: Breno Leitao <leitao@xxxxxxxxxx>