Skip to content

Commit 256c53a

Browse files
Denis Kirjanovtorvalds
authored andcommitted
sysctl_check: drop dead code
Drop dead code. Signed-off-by: Denis Kirjanov <dkirjanov@kernel.org> Cc: "Eric W. Biederman" <ebiederm@xmission.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 814ecf6 commit 256c53a

1 file changed

Lines changed: 0 additions & 4 deletions

File tree

‎kernel/sysctl_check.c‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -144,10 +144,6 @@ int sysctl_check_table(struct nsproxy *namespaces, struct ctl_table *table)
144144
#ifdef CONFIG_PROC_SYSCTL
145145
if (!table->proc_handler)
146146
set_fail(&fail, table, "No proc_handler");
147-
#endif
148-
#if 0
149-
if (!table->procname && table->proc_handler)
150-
set_fail(&fail, table, "proc_handler without procname");
151147
#endif
152148
sysctl_check_leaf(namespaces, table, &fail);
153149
}

0 commit comments

Comments
 (0)