linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] net: sysctl: remove redundant #ifdef CONFIG_NET
@ 2021-01-25 23:14 Masahiro Yamada
  2021-01-28  1:10 ` patchwork-bot+netdevbpf
  0 siblings, 1 reply; 2+ messages in thread
From: Masahiro Yamada @ 2021-01-25 23:14 UTC (permalink / raw)
  To: netdev
  Cc: Masahiro Yamada, Al Viro, Andrey Ignatov, David S. Miller,
	Jakub Kicinski, Kees Cook, Mahesh Bandewar, Nicolas Dichtel,
	linux-kernel

CONFIG_NET is a bool option, and this file is compiled only when
CONFIG_NET=y.

Remove #ifdef CONFIG_NET, which we know it is always met.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
---

 net/core/sysctl_net_core.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/net/core/sysctl_net_core.c b/net/core/sysctl_net_core.c
index d86d8d11cfe4..4567de519603 100644
--- a/net/core/sysctl_net_core.c
+++ b/net/core/sysctl_net_core.c
@@ -309,7 +309,6 @@ proc_dolongvec_minmax_bpf_restricted(struct ctl_table *table, int write,
 #endif
 
 static struct ctl_table net_core_table[] = {
-#ifdef CONFIG_NET
 	{
 		.procname	= "wmem_max",
 		.data		= &sysctl_wmem_max,
@@ -507,7 +506,6 @@ static struct ctl_table net_core_table[] = {
 		.proc_handler	= set_default_qdisc
 	},
 #endif
-#endif /* CONFIG_NET */
 	{
 		.procname	= "netdev_budget",
 		.data		= &netdev_budget,
-- 
2.27.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] net: sysctl: remove redundant #ifdef CONFIG_NET
  2021-01-25 23:14 [PATCH] net: sysctl: remove redundant #ifdef CONFIG_NET Masahiro Yamada
@ 2021-01-28  1:10 ` patchwork-bot+netdevbpf
  0 siblings, 0 replies; 2+ messages in thread
From: patchwork-bot+netdevbpf @ 2021-01-28  1:10 UTC (permalink / raw)
  To: Masahiro Yamada
  Cc: netdev, viro, rdna, davem, kuba, keescook, maheshb,
	nicolas.dichtel, linux-kernel

Hello:

This patch was applied to netdev/net-next.git (refs/heads/master):

On Tue, 26 Jan 2021 08:14:21 +0900 you wrote:
> CONFIG_NET is a bool option, and this file is compiled only when
> CONFIG_NET=y.
> 
> Remove #ifdef CONFIG_NET, which we know it is always met.
> 
> Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
> 
> [...]

Here is the summary with links:
  - net: sysctl: remove redundant #ifdef CONFIG_NET
    https://git.kernel.org/netdev/net-next/c/69783429cd13

You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2021-01-28  1:15 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-01-25 23:14 [PATCH] net: sysctl: remove redundant #ifdef CONFIG_NET Masahiro Yamada
2021-01-28  1:10 ` patchwork-bot+netdevbpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).