Re: [PATCH net-next] netconsole: Do not shutdown dynamic configuration if cmdline is invalid

From: Jakub Kicinski
Date: Mon May 13 2024 - 17:51:40 EST


On Fri, 10 May 2024 03:30:05 -0700 Breno Leitao wrote:
> +static inline bool dynamic_netconsole_enabled(void)
> +{
> + return IS_ENABLED(CONFIG_NETCONSOLE_DYNAMIC);
> +}

Why the separate static inline?
We can put IS_ENABLED.. directly in the if condition.