[PATCH RESEND] riscv: kexec: use min to simplify riscv_kexec_elf_load

Breno Leitao leitao at debian.org
Wed Jun 3 02:31:54 PDT 2026


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 at linux.dev>

Reviewed-by: Breno Leitao <leitao at debian.org>



More information about the linux-riscv mailing list