Re: [PATCH v2 5/9] printk: Separate code for enabling console

From: John Ogness

Date: Fri May 15 2026 - 09:09:39 EST


On 2026-04-23, Petr Mladek <pmladek@xxxxxxxx> wrote:
> There are several code paths which try to enable a newly registered
> console. Move the logic into a separate try_enable_console() function.
>
> It simplifies a bit the long register_console() function definition.
>
> Also followup patches are going to add even more code paths. And it will
> be easier to use "return" when it does not make sense to try other
> variants.
>
> The patch does not change the existing behavior.
>
> Signed-off-by: Petr Mladek <pmladek@xxxxxxxx>

Reviewed-by: John Ogness <john.ogness@xxxxxxxxxxxxx>