projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fd0e4ec
)
net: sysctl: remove redundant #ifdef CONFIG_NET
author
Masahiro Yamada
<masahiroy@kernel.org>
Mon, 25 Jan 2021 23:14:21 +0000
(08:14 +0900)
committer
Jakub Kicinski
<kuba@kernel.org>
Thu, 28 Jan 2021 01:02:43 +0000
(17:02 -0800)
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>
Link:
https://lore.kernel.org/r/20210125231421.105936-1-masahiroy@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/core/sysctl_net_core.c
patch
|
blob
|
history
diff --git
a/net/core/sysctl_net_core.c
b/net/core/sysctl_net_core.c
index
d86d8d1
..
4567de5
100644
(file)
--- 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,