Re: [PATCH v4 07/11] printk: Separate code for enabling console
From: John Ogness
Date: Wed Jul 15 2026 - 12:03:23 EST
On 2026-06-04, 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.
>
> No behavior change.
>
> Signed-off-by: Petr Mladek <pmladek@xxxxxxxx>
Reviewed-by: John Ogness <john.ogness@xxxxxxxxxxxxx>