From: Sascha Wildner Date: Sat, 29 Nov 2014 21:11:21 +0000 (+0100) Subject: kernel/bwi: Fix a wrong conversion to the automatic sysctx ctx/tree setup. X-Git-Url: https://gitweb.dragonflybsd.org/~nant/dragonfly.git/commitdiff_plain/1b74c588a56893bcb3307a16a21d82d346f8ba59 kernel/bwi: Fix a wrong conversion to the automatic sysctx ctx/tree setup. This driver isn't hooked into the build currently. Reported-by: ivadasz --- diff --git a/sys/dev/netif/bwi/if_bwi.c b/sys/dev/netif/bwi/if_bwi.c index 62aaa3c537..f3e81a261d 100644 --- a/sys/dev/netif/bwi/if_bwi.c +++ b/sys/dev/netif/bwi/if_bwi.c @@ -610,7 +610,7 @@ bwi_attach(device_t dev) * Create sysctl tree */ ctx = device_get_sysctl_ctx(sc->bge_dev); - tree = SYSCTL_CHILDREN(device_get_sysctl_tree(sc->bge_dev)); + tree = device_get_sysctl_tree(sc->bge_dev); SYSCTL_ADD_UINT(ctx, SYSCTL_CHILDREN(tree), OID_AUTO, "dwell_time", CTLFLAG_RW, &sc->sc_dwell_time, 0,