[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20240513145129.6f094f92@kernel.org>
Date: Mon, 13 May 2024 14:51:29 -0700
From: Jakub Kicinski <kuba@...nel.org>
To: Breno Leitao <leitao@...ian.org>
Cc: "David S. Miller" <davem@...emloft.net>, Eric Dumazet
<edumazet@...gle.com>, Paolo Abeni <pabeni@...hat.com>,
thepacketgeek@...il.com, Aijay Adams <aijay@...a.com>,
netdev@...r.kernel.org (open list:NETWORKING DRIVERS),
linux-kernel@...r.kernel.org (open list)
Subject: Re: [PATCH net-next] netconsole: Do not shutdown dynamic
configuration if cmdline is invalid
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.
Powered by blists - more mailing lists