kernel/bwi: Fix a wrong conversion to the automatic sysctx ctx/tree setup.
authorSascha Wildner <saw@online.de>
Sat, 29 Nov 2014 21:11:21 +0000 (22:11 +0100)
committerSascha Wildner <saw@online.de>
Sat, 29 Nov 2014 21:11:21 +0000 (22:11 +0100)
This driver isn't hooked into the build currently.

Reported-by: ivadasz
sys/dev/netif/bwi/if_bwi.c

index 62aaa3c..f3e81a2 100644 (file)
@@ -610,7 +610,7 @@ bwi_attach(device_t dev)
         * Create sysctl tree
         */
        ctx = device_get_sysctl_ctx(sc->bge_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,
 
        SYSCTL_ADD_UINT(ctx, SYSCTL_CHILDREN(tree), OID_AUTO,
                        "dwell_time", CTLFLAG_RW, &sc->sc_dwell_time, 0,