Re: [PATCH v2 4/7] riscv: Simplify text patching loops

From: Björn Töpel
Date: Tue Apr 02 2024 - 07:14:08 EST


Samuel Holland <samuel.holland@xxxxxxxxxx> writes:

> This reduces the number of variables and makes the code easier to parse.
>
> Signed-off-by: Samuel Holland <samuel.holland@xxxxxxxxxx>
> ---
>
> Changes in v2:
> - Further simplify patch_insn_set()/patch_insn_write() loop conditions
> - Use min() instead of min_t() since both sides are unsigned long

Thanks for addressing the changes! Nice cleanup!

Reviewed-by: Björn Töpel <bjorn@xxxxxxxxxxxx>