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

Paul Walmsley pjw at kernel.org
Sun Jun 7 00:08:02 PDT 2026


On Wed, 3 Jun 2026, Breno Leitao wrote:

> 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>

Thanks, queued for v7.2.

- Paul



More information about the linux-riscv mailing list