Re: [PATCH] timers/migration: Clean up the loop in tmigr_quick_check()

From: Frederic Weisbecker
Date: Tue Jun 10 2025 - 09:12:58 EST


Le Fri, Jun 06, 2025 at 02:48:18PM +0200, Petr Tesarik a écrit :
> Make the logic easier to follow:
>
> - Remove the final return statement, which is never reached, and move the
> actual walk-terminating return statement out of the do-while loop.
>
> - Remove the else-clause to reduce indentation. If a non-lonely group is
> encountered during the walk, the loop is immediately terminated with a
> return statement anyway; no need for an else.
>
> Signed-off-by: Petr Tesarik <ptesarik@xxxxxxxx>

Reviewed-by: Frederic Weisbecker <frederic@xxxxxxxxxx>

--
Frederic Weisbecker
SUSE Labs