diff options
| author | pooka <pooka@NetBSD.org> | 2014-02-25 18:30:08 +0000 |
|---|---|---|
| committer | pooka <pooka@NetBSD.org> | 2014-02-25 18:30:08 +0000 |
| commit | 05fd0bf3e1843b7a1e600ce4f7814ce6d7f7fd62 (patch) | |
| tree | aba8182016b10f912c8727302700741239282d12 /sys/modules/lua | |
| parent | 58dce71adab75247a41a496492671e7caf532ac2 (diff) | |
Ensure that the top level sysctl nodes (kern, vfs, net, ...) exist before
the sysctl link sets are processed, and remove redundancy.
Shaves >13kB off of an amd64 GENERIC, not to mention >1k duplicate
lines of code.
Diffstat (limited to 'sys/modules/lua')
| -rw-r--r-- | sys/modules/lua/lua.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/sys/modules/lua/lua.c b/sys/modules/lua/lua.c index 349809cf7a7..1b0a21afceb 100644 --- a/sys/modules/lua/lua.c +++ b/sys/modules/lua/lua.c @@ -1,4 +1,4 @@ -/* $NetBSD: lua.c,v 1.6 2013/12/04 02:12:01 lneto Exp $ */ +/* $NetBSD: lua.c,v 1.7 2014/02/25 18:30:12 pooka Exp $ */ /* * Copyright (c) 2011, 2013 by Marc Balmer <mbalmer@NetBSD.org>. @@ -132,11 +132,6 @@ lua_attach(device_t parent, device_t self, void *aux) pmf_device_register(self, NULL, NULL); /* Sysctl to provide some control over behaviour */ - sysctl_createv(NULL, 0, NULL, NULL, - CTLFLAG_PERMANENT, - CTLTYPE_NODE, "kern", NULL, - NULL, 0, NULL, 0, - CTL_KERN, CTL_EOL); sysctl_createv(&sc->sc_log, 0, NULL, &node, CTLFLAG_OWNDESC, CTLTYPE_NODE, "lua", |
