All of lore.kernel.org
 help / color / mirror / Atom feed
From: Frederic Weisbecker <frederic@kernel.org>
To: Petr Tesarik <ptesarik@suse.com>
Cc: Anna-Maria Behnsen <anna-maria@linutronix.de>,
	Thomas Gleixner <tglx@linutronix.de>,
	"(open list:HIGH-RESOLUTION TIMERS, TIMER WHEEL,
	CLOCKEVENTS)" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] timers/migration: Clean up the loop in tmigr_quick_check()
Date: Tue, 10 Jun 2025 14:57:56 +0200	[thread overview]
Message-ID: <aEgr1AVrvWDkIR2v@localhost.localdomain> (raw)
In-Reply-To: <20250606124818.455560-1-ptesarik@suse.com>

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@suse.com>

Reviewed-by: Frederic Weisbecker <frederic@kernel.org>

-- 
Frederic Weisbecker
SUSE Labs

  reply	other threads:[~2025-06-10 12:57 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-06-06 12:48 [PATCH] timers/migration: Clean up the loop in tmigr_quick_check() Petr Tesarik
2025-06-10 12:57 ` Frederic Weisbecker [this message]
2025-06-12 20:49 ` [tip: timers/core] " tip-bot2 for Petr Tesarik

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=aEgr1AVrvWDkIR2v@localhost.localdomain \
    --to=frederic@kernel.org \
    --cc=anna-maria@linutronix.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=ptesarik@suse.com \
    --cc=tglx@linutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.