Re: [PATCH] mm/damon/core: simplify control flow in damon_register_ops()

From: SeongJae Park
Date: Thu Mar 20 2025 - 13:00:24 EST


+ damon@ and linux-mm@ mailing lists.

Hello Taotao,

On Thu, 20 Mar 2025 18:44:00 +0800 Taotao Chen <chentaotao@xxxxxxxxxxxxxx> wrote:

> The function logic is not complex, so using goto is unnecessary.
> Replace it with a straightforward if-else to simplify control flow
> and improve readability.

Good catch and nice cleanup, thank you!
>
> Signed-off-by: Taotao Chen <chentaotao@xxxxxxxxxxxxxx>

Reviewed-by: SeongJae Park <sj@xxxxxxxxxx>


Thanks,
SJ

[...]