From 05fd0bf3e1843b7a1e600ce4f7814ce6d7f7fd62 Mon Sep 17 00:00:00 2001 From: pooka Date: Tue, 25 Feb 2014 18:30:08 +0000 Subject: 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. --- sys/modules/lua/lua.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'sys/modules/lua/lua.c') 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 . @@ -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", -- cgit