timers/migration: Clean up the loop in tmigr_quick_check()
authorPetr Tesarik <ptesarik@suse.com>
Fri, 6 Jun 2025 12:48:18 +0000 (14:48 +0200)
committerThomas Gleixner <tglx@linutronix.de>
Thu, 12 Jun 2025 19:03:45 +0000 (21:03 +0200)
commitff56a3e2a8613e8524f40ef2efa2c0169659e99e
treee509ddb55cfda0ba21b888a66ed1fe598e6b2a77
parent19272b37aa4f83ca52bdf9c16d5d81bdd1354494
timers/migration: Clean up the loop in tmigr_quick_check()

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@suse.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Frederic Weisbecker <frederic@kernel.org>
Link: https://lore.kernel.org/all/20250606124818.455560-1-ptesarik@suse.com
kernel/time/timer_migration.c